/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme customizado para Reflexões Diárias.
Author: Carlos Alves
Template: astra
Version: 1.0.4
Text Domain: astra-child
*/

:root {
    --post-content-font-size: 17px;
}

/* ==========================================================================
   TRANSIÇÃO GLOBAL SUAVE ENTRE MODO ESCURO E CLARO
   ========================================================================== */
body, #page, .site,
#masthead.site-header,
.ast-article-inner,
article.ast-article-single,
.reading-toolbar,
.entry-title,
.entry-content,
.site-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ==========================================================================
   1. BARRA DE MENUS FIXA COM ESTILO LIQUID GLASS
   ========================================================================== */

#masthead.site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(11, 17, 32, 0.82) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55), 0 0 20px 0 rgba(0, 0, 0, 0.25) !important;
}

#masthead .ast-desktop-header,
#masthead .ast-main-header-wrap,
#masthead .main-header-bar-wrap,
#masthead .ast-primary-header-bar,
#masthead .site-primary-header-wrap,
#masthead .main-header-bar {
    background: transparent !important;
    border: none !important;
}

/* Menu de Navegação - Pílulas Proporcionais */
.ast-desktop .ast-primary-header-bar .main-header-menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
    height: 38px !important;
    max-height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover {
    color: #facc15 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(250, 204, 21, 0.35) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item.current_page_item > .menu-link {
    color: #facc15 !important;
    background: rgba(234, 179, 8, 0.12) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.12) !important;
}

/* ==========================================================================
   SUB-MENU ELEGANTE (DROPDOWN MODERNO COM LIQUID GLASS & DETALHE DOURADO)
   ========================================================================== */

/* Posicionamento do item pai */
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item-has-children {
    position: relative !important;
}

/* Seta de navegação suave */
.ast-desktop .ast-primary-header-bar .main-header-menu .menu-item-has-children .ast-header-navigation-arrow,
.ast-desktop .ast-primary-header-bar .main-header-menu .menu-item-has-children .dropdown-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 6px !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu .menu-item-has-children:hover > .menu-link .ast-header-navigation-arrow,
.ast-desktop .ast-primary-header-bar .main-header-menu .menu-item-has-children:hover > .menu-link .dropdown-menu-toggle {
    transform: rotate(180deg) !important;
}

/* Container do Dropdown Sub-menu */
.ast-desktop .main-header-menu .sub-menu,
.ast-desktop .ast-builder-menu-1 .sub-menu,
.ast-desktop .main-header-bar-navigation .sub-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    min-width: 210px !important;
    width: max-content !important;
    max-width: 280px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 2px solid #eab308 !important; /* Detalhe dourado que substitui a barra azul do Astra */
    border-radius: 14px !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px 1px rgba(234, 179, 8, 0.1) !important;
    padding: 8px !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    transform-origin: top center !important;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s ease !important;
    z-index: 99999 !important;
}

/* Ponte invisível para garantir que o mouse não perca o foco */
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu::before,
.ast-desktop .main-header-menu > .menu-item > .sub-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: transparent !important;
    border: none !important;
}

/* Itens da lista do Sub-menu */
.ast-desktop .main-header-menu .sub-menu .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    height: auto !important;
    line-height: normal !important;
}

/* Links dos Itens do Sub-menu */
.ast-desktop .main-header-menu .sub-menu .menu-item .menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38px !important;
    max-height: none !important;
    line-height: 1.4 !important;
    padding: 9px 14px !important;
    margin: 2px 0 !important;
    border-radius: 9px !important;
    font-size: 0.91rem !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Indicador dourado sutil antes do texto */
.ast-desktop .main-header-menu .sub-menu .menu-item .menu-link::before {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    border-radius: 50% !important;
    background: #eab308 !important;
    margin-right: 10px !important;
    opacity: 0.45 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover no item do Sub-menu */
.ast-desktop .main-header-menu .sub-menu .menu-item .menu-link:hover {
    color: #facc15 !important;
    background: rgba(234, 179, 8, 0.12) !important;
    border-color: rgba(234, 179, 8, 0.28) !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.ast-desktop .main-header-menu .sub-menu .menu-item .menu-link:hover::before {
    opacity: 1 !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.8) !important;
}

/* Item ativo no Sub-menu */
.ast-desktop .main-header-menu .sub-menu .menu-item.current-menu-item .menu-link,
.ast-desktop .main-header-menu .sub-menu .menu-item.current_page_item .menu-link {
    color: #facc15 !important;
    background: rgba(234, 179, 8, 0.16) !important;
    border-color: rgba(234, 179, 8, 0.38) !important;
    font-weight: 600 !important;
}

.ast-desktop .main-header-menu .sub-menu .menu-item.current-menu-item .menu-link::before,
.ast-desktop .main-header-menu .sub-menu .menu-item.current_page_item .menu-link::before {
    opacity: 1 !important;
    box-shadow: 0 0 6px #facc15 !important;
}

/* Sub-menu no Modo Claro (.light-theme) */
.light-theme .ast-desktop .main-header-menu .sub-menu,
.light-theme .ast-desktop .ast-builder-menu-1 .sub-menu,
.light-theme .ast-desktop .main-header-bar-navigation .sub-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    border-top: 2px solid #d97706 !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item .menu-link {
    color: #334155 !important;
}

.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item .menu-link::before {
    background: #d97706 !important;
    opacity: 0.5 !important;
}

.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item .menu-link:hover {
    color: #b45309 !important;
    background: rgba(234, 179, 8, 0.12) !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1) !important;
}

.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item .menu-link:hover::before {
    opacity: 1 !important;
    box-shadow: 0 0 6px rgba(217, 119, 6, 0.6) !important;
}

.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item.current-menu-item .menu-link,
.light-theme .ast-desktop .main-header-menu .sub-menu .menu-item.current_page_item .menu-link {
    color: #b45309 !important;
    background: rgba(234, 179, 8, 0.16) !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
}

/* ==========================================================================
   BOTÃO DE ALTERNAR MODO ESCURO / CLARO
   ========================================================================== */
.menu-item-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 6px !important;
}

.theme-mode-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #facc15 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.theme-mode-toggle-btn:hover {
    background: rgba(234, 179, 8, 0.18) !important;
    border-color: rgba(234, 179, 8, 0.45) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.3) !important;
}

/* No Modo Escuro (padrão): Exibe o Sol (para mudar para claro) e esconde a Lua */
.theme-mode-toggle-btn .icon-sun {
    display: inline-flex !important;
}
.theme-mode-toggle-btn .icon-moon {
    display: none !important;
}

/* No Modo Claro: Exibe a Lua (para mudar para escuro) e esconde o Sol */
.light-theme .theme-mode-toggle-btn .icon-sun {
    display: none !important;
}
.light-theme .theme-mode-toggle-btn .icon-moon {
    display: inline-flex !important;
}

/* Mobile Header */
#ast-mobile-header {
    background: transparent !important;
}
.ast-mobile-header-wrap .ast-mobile-header-content {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   2. CARDS MODERNOS & ELEGANTES (PÁGINA INICIAL / ARQUIVOS)
   ========================================================================== */

.ast-blog-layout-4-grid .ast-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    row-gap: 28px !important;
}

.ast-blog-layout-4-grid .ast-row article.ast-article-post {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.ast-blog-layout-4-grid .ast-article-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 28px 24px 22px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.ast-blog-layout-4-grid .ast-article-inner::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 5%, #eab308 50%, transparent 95%) !important;
    opacity: 0.45 !important;
    transition: opacity 0.35s ease, height 0.35s ease !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(234, 179, 8, 0.45) !important;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.65), 0 0 25px 2px rgba(234, 179, 8, 0.15) !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover::before {
    opacity: 1 !important;
    height: 3px !important;
}

.ast-blog-layout-4-grid .ast-article-inner .post-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    padding: 0 !important;
}

.ast-blog-layout-4-grid .entry-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.25rem !important;
    font-weight: normal !important;
    font-style: normal !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
}

.ast-blog-layout-4-grid .entry-title a {
    color: #f8fafc !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover .entry-title a {
    color: #facc15 !important;
}

.ast-blog-layout-4-grid .entry-header.ast-blog-meta-container {
    margin-bottom: 16px !important;
}

.ast-blog-layout-4-grid .entry-meta {
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.ast-blog-layout-4-grid .entry-meta span {
    color: #94a3b8 !important;
}

.ast-blog-layout-4-grid .entry-meta a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.ast-blog-layout-4-grid .entry-meta a:hover {
    color: #facc15 !important;
}

.ast-blog-layout-4-grid .ast-excerpt-container {
    flex: 1 1 auto !important;
    margin-bottom: 20px !important;
}

.ast-blog-layout-4-grid .ast-excerpt-container p {
    color: #cbd5e1 !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.ast-blog-layout-4-grid .entry-content {
    margin-top: auto !important;
    width: 100% !important;
}

.ast-blog-layout-4-grid .card-read-more-wrapper {
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ast-blog-layout-4-grid .card-read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #facc15 !important;
    text-decoration: none !important;
    transition: gap 0.25s ease, color 0.25s ease !important;
}

.ast-blog-layout-4-grid .card-read-more .card-arrow {
    display: inline-block !important;
    transition: transform 0.25s ease !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover .card-read-more .card-arrow {
    transform: translateX(5px) !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover .card-read-more {
    color: #fde047 !important;
}

.ast-blog-layout-4-grid .ast-blog-featured-section {
    margin: -8px -4px 16px -4px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.ast-blog-layout-4-grid .ast-blog-featured-section img {
    border-radius: 12px !important;
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.ast-blog-layout-4-grid .ast-article-inner:hover .ast-blog-featured-section img {
    transform: scale(1.04) !important;
}

/* ==========================================================================
   3. PÁGINA INTERNA DE POSTS (SINGLE POST) - 16PX
   ========================================================================== */

.single-post article.ast-article-single,
.single-post .ast-article-single {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 44px 48px !important;
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 24px !important;
    margin-bottom: 40px !important;
}

.single-post article.ast-article-single::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 5%, #eab308 50%, transparent 95%) !important;
    opacity: 0.7 !important;
}

.single-post .entry-header .entry-title {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    line-height: 1.28 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
}

.single-post .entry-header .entry-meta {
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.single-post .entry-header .entry-meta a {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.single-post .entry-header .entry-meta a:hover {
    color: #facc15 !important;
}

/* ==========================================================================
   4. BARRA DE ACESSIBILIDADE & FERRAMENTAS VISUAIS DE LEITURA
   ========================================================================== */

.reading-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-top: 24px !important;
    margin-bottom: 28px !important;
    padding: 12px 18px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(8px) !important;
}

.reading-meta-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.reading-time-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

.reading-time-badge svg {
    color: #eab308 !important;
}

.reading-controls-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.font-size-control-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.font-size-control-group .control-label {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-right: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.font-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    font-size: 0.84rem !important;
    font-weight: normal !important;
    font-style: normal !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
}

.font-btn:hover:not(:disabled) {
    background: rgba(234, 179, 8, 0.18) !important;
    border-color: rgba(234, 179, 8, 0.45) !important;
    color: #facc15 !important;
    transform: translateY(-1px) !important;
}

.font-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.font-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.font-btn.font-btn-reset.is-default {
    border-color: rgba(234, 179, 8, 0.3) !important;
    color: #facc15 !important;
}

.tool-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    user-select: none !important;
}

.tool-action-btn svg {
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.tool-action-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
    color: #facc15 !important;
    transform: translateY(-1px) !important;
}

.tool-action-btn:hover svg {
    color: #facc15 !important;
}

.tool-action-btn.active {
    background: rgba(234, 179, 8, 0.15) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #facc15 !important;
}

.tool-action-btn.copied {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #4ade80 !important;
}

/* ==========================================================================
   5. TIPOGRAFIA DO CONTEÚDO DO POST
   ========================================================================== */

.single-post .entry-content {
    color: #cbd5e1 !important;
    transition: font-size 0.2s ease, line-height 0.2s ease !important;
}

.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content blockquote p {
    font-size: var(--post-content-font-size, 17px) !important;
    line-height: 1.8 !important;
}

.single-post .entry-content p {
    color: #cbd5e1 !important;
    margin-bottom: 1.45em !important;
}

.single-post .entry-content h2 {
    color: #f8fafc !important;
    font-size: 1.65rem !important;
    font-weight: normal !important;
    font-style: normal !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    margin-top: 2.2em !important;
    margin-bottom: 0.9em !important;
    letter-spacing: -0.01em !important;
}

.single-post .entry-content h3 {
    color: #f1f5f9 !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.8em !important;
}

.single-post .entry-content strong,
.single-post .entry-content b {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.single-post .entry-content blockquote {
    border-left: 3px solid #eab308 !important;
    background: rgba(234, 179, 8, 0.05) !important;
    padding: 20px 24px !important;
    border-radius: 0 12px 12px 0 !important;
    margin: 28px 0 !important;
    font-style: italic !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.2) !important;
}

.single-post .entry-content blockquote p {
    color: #f1f5f9 !important;
    margin-bottom: 0 !important;
    font-size: 1.05em !important;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: 24px !important;
    margin-bottom: 1.5em !important;
    color: #cbd5e1 !important;
}

.single-post .entry-content li {
    margin-bottom: 0.6em !important;
}

.single-post .entry-content a {
    color: #facc15 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s ease !important;
}

.single-post .entry-content a:hover {
    color: #fde047 !important;
}

.single-post article.ast-article-single.focus-reading-mode {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.08) !important;
}

/* ==========================================================================
   6. ESPAÇAMENTO ENTRE CABEÇALHO FIXO E CONTEÚDO
   ========================================================================== */

.home #content.site-content,
.blog #content.site-content,
.archive #content.site-content,
.search #content.site-content {
    padding-top: 44px !important;
}

.ast-blog-layout-4-grid {
    margin-top: 6px !important;
    margin-bottom: 48px !important;
}

/* ==========================================================================
   7. ESTILOS COMPLETOS DO MODO CLARO (.light-theme)
   ========================================================================== */

/* Fundo Geral da Página no Modo Claro */
html.light-theme body,
body.light-theme,
.light-theme #page,
.light-theme .site {
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #334155 !important;
}

/* Cabeçalho Liquid Glass Claro */
.light-theme #masthead.site-header {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

.light-theme #masthead .site-title a {
    color: #0f172a !important;
}

.light-theme .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
    color: #475569 !important;
}

.light-theme .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover {
    color: #b45309 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(180, 83, 9, 0.25) !important;
}

.light-theme .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link,
.light-theme .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item.current_page_item > .menu-link {
    color: #b45309 !important;
    background: rgba(234, 179, 8, 0.15) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.15) !important;
}

/* Botão de Alternância no Modo Claro */
.light-theme .theme-mode-toggle-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

.light-theme .theme-mode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #d97706 !important;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1) !important;
}

/* Cards da Home no Modo Claro */
.light-theme .ast-blog-layout-4-grid .ast-article-inner {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .ast-blog-layout-4-grid .ast-article-inner:hover {
    border-color: rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 16px 28px -8px rgba(0, 0, 0, 0.12), 0 0 20px 2px rgba(234, 179, 8, 0.15) !important;
}

.light-theme .ast-blog-layout-4-grid .entry-title a {
    color: #0f172a !important;
}

.light-theme .ast-blog-layout-4-grid .ast-article-inner:hover .entry-title a {
    color: #d97706 !important;
}

.light-theme .ast-blog-layout-4-grid .entry-meta,
.light-theme .ast-blog-layout-4-grid .entry-meta span {
    color: #64748b !important;
}

.light-theme .ast-blog-layout-4-grid .entry-meta a {
    color: #475569 !important;
}

.light-theme .ast-blog-layout-4-grid .entry-meta a:hover {
    color: #d97706 !important;
}

.light-theme .ast-blog-layout-4-grid .ast-excerpt-container p {
    color: #475569 !important;
}

.light-theme .ast-blog-layout-4-grid .card-read-more-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.light-theme .ast-blog-layout-4-grid .card-read-more {
    color: #d97706 !important;
}

.light-theme .ast-blog-layout-4-grid .ast-article-inner:hover .card-read-more {
    color: #b45309 !important;
}

/* Página de Posts no Modo Claro */
.light-theme.single-post article.ast-article-single,
.light-theme.single-post .ast-article-single {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03) !important;
}

.light-theme.single-post .entry-header .entry-title {
    color: #0f172a !important;
}

.light-theme.single-post .entry-header .entry-meta,
.light-theme.single-post .entry-header .entry-meta span {
    color: #64748b !important;
}

.light-theme.single-post .entry-header .entry-meta a {
    color: #475569 !important;
}

.light-theme.single-post .entry-header .entry-meta a:hover {
    color: #d97706 !important;
}

.light-theme.single-post .entry-content,
.light-theme.single-post .entry-content p,
.light-theme.single-post .entry-content li {
    color: #334155 !important;
}

.light-theme.single-post .entry-content h2,
.light-theme.single-post .entry-content h3 {
    color: #0f172a !important;
}

.light-theme.single-post .entry-content strong,
.light-theme.single-post .entry-content b {
    color: #0f172a !important;
}

.light-theme.single-post .entry-content blockquote {
    background: rgba(234, 179, 8, 0.08) !important;
    border-left-color: #d97706 !important;
    color: #1e293b !important;
}

.light-theme.single-post .entry-content blockquote p {
    color: #1e293b !important;
}

.light-theme.single-post .entry-content a {
    color: #d97706 !important;
}

.light-theme.single-post .entry-content a:hover {
    color: #b45309 !important;
}

/* Barra de Acessibilidade no Modo Claro */
.light-theme .reading-toolbar {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.light-theme .reading-time-badge {
    color: #64748b !important;
}

.light-theme .font-size-control-group {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.light-theme .font-size-control-group .control-label {
    color: #64748b !important;
}

.light-theme .font-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

.light-theme .font-btn:hover:not(:disabled) {
    background: #fef3c7 !important;
    border-color: rgba(234, 179, 8, 0.5) !important;
    color: #b45309 !important;
}

.light-theme .tool-action-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #334155 !important;
}

.light-theme .tool-action-btn:hover {
    background: #fef3c7 !important;
    border-color: rgba(234, 179, 8, 0.5) !important;
    color: #b45309 !important;
}

.light-theme .tool-action-btn:hover svg {
    color: #b45309 !important;
}

.light-theme .tool-action-btn.active {
    background: #fef3c7 !important;
    border-color: #d97706 !important;
    color: #b45309 !important;
}

/* Rodapé no Modo Claro */
.light-theme .site-footer,
.light-theme .site-footer a {
    color: #64748b !important;
}

.light-theme .site-footer a:hover {
    color: #d97706 !important;
}

/* ==========================================================================
   8. RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
    .single-post article.ast-article-single,
    .single-post .ast-article-single {
        padding: 28px 20px !important;
        margin-top: 14px !important;
        border-radius: 14px !important;
    }

    .single-post .entry-header .entry-title {
        font-size: 1.65rem !important;
    }

    .reading-toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px 14px !important;
    }

    .reading-controls-right {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .home #content.site-content,
    .blog #content.site-content,
    .archive #content.site-content,
    .search #content.site-content {
        padding-top: 24px !important;
    }
}
/* ==========================================================================
   ALINHAMENTO À ESQUERDA & ÍCONES DOS METADADOS (DATA E AUTOR)
   ========================================================================== */
.entry-meta,
.ast-blog-layout-4-grid .entry-meta,
.single-post .entry-header .entry-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
}

.entry-meta .posted-on,
.entry-meta .posted-by {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.entry-meta i.fa-solid {
    font-size: 0.92em !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.entry-meta .meta-separator {
    color: #64748b !important;
    margin: 0 2px !important;
    opacity: 0.7 !important;
}

/* ==========================================================================
   AJUSTE DE ALINHAMENTO À ESQUERDA & MARGENS COMPACTAS (CARDS)
   ========================================================================== */
.ast-blog-layout-4-grid .ast-article-inner .post-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Alinha todo o conteúdo rigorosamente à esquerda */
    text-align: left !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Margem reduzida do Título */
.ast-blog-layout-4-grid .entry-title {
    width: 100% !important;
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important; /* Redução da margem inferior do título */
}

/* Container de Metadados (Data e Autor) 100% à esquerda e com margem compacta */
.ast-blog-layout-4-grid header.entry-header,
.ast-blog-layout-4-grid .entry-header.ast-blog-meta-container {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important; /* Margem enxuta entre a data e o resumo */
    padding: 0 !important;
}

.ast-blog-layout-4-grid .entry-meta {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ast-blog-layout-4-grid .entry-meta .posted-on {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Resumo do post com início alinhado à esquerda e margem equilibrada */
.ast-blog-layout-4-grid .ast-excerpt-container {
    width: 100% !important;
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}


/* ==========================================================================
   2. LOGO SVG PERSONALIZADO NO MENU DO TOPO
   ========================================================================== */

.site-header-primary-section-left {
    display: flex !important;
    align-items: center !important;
}

.site-header-primary-section-left .site-branding,
.site-header-primary-section-left .ast-site-identity {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header-primary-section-left .site-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    line-height: 0 !important;
    padding: 6px 0 !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
}

.site-header-primary-section-left .site-logo-link:hover {
    transform: translateY(-1px) scale(1.02) !important;
    opacity: 0.95 !important;
}

.site-header-primary-section-left .site-logo-link svg {
    height: 46px !important;
    width: auto !important;
    max-height: 50px !important;
    display: block !important;
    overflow: visible !important;
}

/* Cores do Logo SVG: Tema Escuro (Padrao) */
.site-header-primary-section-left .site-logo-link .logo-text-element {
    fill: #F8FAFC !important;
    transition: fill 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Cores do Logo SVG: Tema Claro */
html.light-theme .site-header-primary-section-left .site-logo-link .logo-text-element,
body.light-theme .site-header-primary-section-left .site-logo-link .logo-text-element {
    fill: #0F172A !important;
}

/* Responsividade para Tablet e Mobile */
@media (max-width: 768px) {
    .site-header-primary-section-left .site-logo-link svg {
        height: 38px !important;
        max-height: 40px !important;
    }
}

/* ==========================================================================
   HERO MULTI-CARDS ANIMADO & ACERVO DE ESTUDOS (REFERÊNCIA PALAVRA VIVA)
   ========================================================================== */

/* 1. ESPAÇAMENTO OTIMIZADO ENTRE MENU SUPERIOR E HERO NA PÁGINA DE ESTUDOS */
.page-id-27 #content.site-content,
.page.page-id-27 .site-content,
body.page-id-27 #content.site-content {
    padding-top: 14px !important;
}

.page-id-27 .ast-container,
.page-id-27 .site-main,
.page-id-27 .ast-article-single,
.page-id-27 .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.page-id-27 .ast-article-single {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}

/* 2. CONTAINER DO HERO - COMPACTO E PROPORCIONAL PARA PRIMEIRA DOBRA */
.escriba-hero-section {
    position: relative;
    overflow: hidden;
    padding: 24px 30px 18px 30px !important;
    margin: 0 auto 28px auto !important;
    max-width: 1240px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(20, 27, 45, 0.92) 0%, rgba(10, 15, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Atmosfera de Luz Quente Sutil */
.hero-glow-warm {
    position: absolute;
    top: -80px;
    right: 40px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, rgba(217, 119, 6, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-glow-cold {
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container-wide {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

/* 3. SPLIT HEADER EQUILIBRADO E ENXUTO */
.hero-split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 16px !important;
}

.hero-header-left {
    flex: 1 1 58%;
}

.hero-overline-tag {
    display: inline-block;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cbd5e1;
    opacity: 0.85;
    margin-bottom: 4px !important;
}

.hero-reference-title {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0 !important;
}

.gold-serif-text {
    font-style: italic;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    background: linear-gradient(135deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-reference-subtitle {
    color: #94a3b8;
    font-size: 0.92rem !important;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 0 14px 0 !important;
}

.hero-cta-explore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px !important;
    border-radius: 9999px;
    background: #eab308;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.84rem !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-explore:hover {
    background: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45);
    color: #0f172a !important;
}

.hero-cta-explore i {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.hero-cta-explore:hover i {
    transform: translateX(3px);
}

/* Coluna Direita: Citação Bíblica Salmos 119:105 */
.hero-header-right {
    flex: 1 1 42%;
    display: flex;
    justify-content: flex-end;
}

.hero-quote-box {
    max-width: 370px;
    text-align: right;
    padding-top: 0 !important;
}

.hero-scripture-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.08rem !important;
    color: #f1f5f9;
    line-height: 1.45 !important;
    margin: 0 0 6px 0 !important;
    opacity: 0.92;
    border: none;
    background: transparent;
    padding: 0;
}

.hero-scripture-ref {
    display: block;
    font-size: 0.74rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #eab308;
}

/* ==========================================================================
   4. CARROSSEL DE CARDS - ALTURA OTIMIZADA PARA VISIBILIDADE TOTAL
   ========================================================================== */
.hero-cards-section-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px !important;
    margin: 8px 0 14px 0 !important;
}

/* Botões Laterais Flutuantes Enxutos */
.hero-arrow-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    z-index: 5;
}

.hero-arrow-btn:hover {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.5);
    color: #facc15;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.hero-cards-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    padding: 4px 0;
}

.hero-cards-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
}

/* Cada Card no Grid Horizontal */
.hero-multi-card {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 6px !important;
    box-sizing: border-box;
}

.hero-multi-card-inner {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 24px -5px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-multi-card-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.65), 0 0 20px 1px rgba(234, 179, 8, 0.12);
}

/* Mídia do Card (Imagem ou Gradiente) com Altura Otimizada */
.hero-card-media-wrapper {
    position: relative;
    width: 100%;
    height: 125px !important; /* Altura compacta para caber 100% na dobra da tela */
    overflow: hidden;
    background: #0f172a;
}

.hero-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-multi-card-inner:hover .hero-card-img {
    transform: scale(1.06);
}

/* Gradientes de Fallback Elegantes e Sóbrios */
.hero-card-img-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gradient-placeholder-1 {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 45%, #382008 100%);
}

.gradient-placeholder-2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #272262 100%);
}

.gradient-placeholder-3 {
    background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #543310 100%);
}

.gradient-placeholder-4 {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #0f172a 100%);
}

.placeholder-icon {
    font-size: 1.6rem !important;
    color: #eab308;
    opacity: 0.35;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 2;
}

.hero-multi-card-inner:hover .placeholder-icon {
    transform: scale(1.15);
    opacity: 0.65;
}

.placeholder-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(234, 179, 8, 0.18), transparent 70%);
    z-index: 1;
}

/* Badge de Categoria Flutuante */
.hero-card-badge-pill {
    position: absolute;
    bottom: 8px;
    left: 10px;
    padding: 2px 8px !important;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #cbd5e1;
    font-size: 0.68rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 3;
}

/* Corpo do Card com Tipografia Proporcional */
.hero-card-body {
    padding: 12px 14px 14px 14px !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.hero-card-post-title {
    margin: 0 0 6px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-post-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-multi-card-inner:hover .hero-card-post-title a {
    color: #facc15;
}

.hero-card-post-excerpt {
    color: #94a3b8;
    font-size: 0.82rem !important;
    line-height: 1.45;
    margin: 0 0 10px 0 !important;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-action {
    margin-top: auto;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-link-gold {
    color: #facc15;
    font-size: 0.82rem !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hero-card-link-gold .link-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.92rem;
}

.hero-multi-card-inner:hover .hero-card-link-gold {
    color: #fde047;
}

.hero-multi-card-inner:hover .hero-card-link-gold .link-arrow {
    transform: translateX(3px);
}

/* Base do Hero: Dots e Assinatura */
.hero-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px !important;
    padding: 0 4px;
}

.hero-cards-dots {
    display: flex;
    align-items: center;
    gap: 6px !important;
}

.hero-multi-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-multi-dot.active {
    width: 18px !important;
    border-radius: 9999px;
    background: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.hero-signature-text {
    font-family: 'Playfair Display', Georgia, cursive, serif;
    font-style: italic;
    font-size: 0.86rem !important;
    color: #94a3b8;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   ACERVO COMPLETO DE ESTUDOS (GRID INFERIOR)
   ========================================================================== */
.estudos-archive-section {
    max-width: 1240px;
    margin: 36px auto !important;
    padding: 0 16px;
}

.archive-section-header {
    margin-bottom: 24px;
}

.archive-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eab308;
    margin-bottom: 6px;
}

.archive-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eab308;
}

.archive-title {
    font-size: 1.75rem !important;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 6px 0;
}

.archive-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    margin: 0;
}

.estudos-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.estudos-grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.grid-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #eab308 50%, transparent 95%);
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.grid-item-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px 2px rgba(234, 179, 8, 0.12);
}

.grid-item-inner:hover::before {
    opacity: 1;
}

.grid-item-badge-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.grid-item-badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grid-item-reading {
    color: #94a3b8;
    font-size: 0.78rem;
}

.grid-item-title {
    margin: 0 0 8px 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.38;
}

.grid-item-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.grid-item-inner:hover .grid-item-title a {
    color: #facc15;
}

.grid-item-excerpt {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1 1 auto;
}

.grid-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.grid-item-date {
    color: #94a3b8;
}

.grid-item-link {
    color: #facc15;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.grid-item-inner:hover .grid-item-link {
    color: #fde047;
    gap: 8px;
}

/* ==========================================================================
   COMPATIBILIDADE COM MODO CLARO (.light-theme)
   ========================================================================== */
.light-theme .escriba-hero-section {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.08);
}

.light-theme .hero-overline-tag {
    color: #64748b;
}

.light-theme .hero-reference-title {
    color: #0f172a;
}

.light-theme .hero-reference-subtitle {
    color: #475569;
}

.light-theme .hero-cta-explore {
    background: #d97706;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

.light-theme .hero-cta-explore:hover {
    background: #b45309;
}

.light-theme .hero-scripture-quote {
    color: #1e293b;
}

.light-theme .hero-scripture-ref {
    color: #d97706;
}

.light-theme .hero-arrow-btn {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #334155;
}

.light-theme .hero-arrow-btn:hover {
    background: #fef3c7;
    border-color: rgba(217, 119, 6, 0.4);
    color: #b45309;
}

.light-theme .hero-multi-card-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.06);
}

.light-theme .hero-multi-card-inner:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.1);
}

.light-theme .hero-card-badge-pill {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

.light-theme .hero-card-post-title a {
    color: #0f172a;
}

.light-theme .hero-card-post-title a:hover {
    color: #d97706;
}

.light-theme .hero-card-post-excerpt {
    color: #475569;
}

.light-theme .hero-card-link-gold {
    color: #d97706;
}

.light-theme .hero-card-link-gold:hover {
    color: #b45309;
}

.light-theme .hero-multi-dot {
    background: rgba(0, 0, 0, 0.15);
}

.light-theme .hero-multi-dot.active {
    background: #d97706;
}

.light-theme .archive-title {
    color: #0f172a;
}

.light-theme .archive-desc {
    color: #64748b;
}

.light-theme .grid-item-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .grid-item-title a {
    color: #0f172a;
}

.light-theme .grid-item-title a:hover {
    color: #d97706;
}

.light-theme .grid-item-excerpt {
    color: #475569;
}

.light-theme .grid-item-link {
    color: #d97706;
}

/* ==========================================================================
   RESPONSIVIDADE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-multi-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .escriba-hero-section {
        padding: 22px 16px 18px 16px !important;
        border-radius: 16px;
    }

    .hero-split-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px !important;
    }

    .hero-header-right {
        justify-content: flex-start;
        width: 100%;
    }

    .hero-quote-box {
        text-align: left;
        max-width: 100%;
    }

    .hero-scripture-ref {
        text-align: left;
    }

    .hero-multi-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-arrow-btn {
        display: none;
    }

    .estudos-cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-bottom-bar {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}


/* ==========================================================================
   CLASSES DA FERRAMENTA DE DECORAÇÃO DE CARDS (ESCRIBA)
   ========================================================================== */
.gradient-card-ouro_madeira {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 45%, #382008 100%) !important;
}

.gradient-card-indigo_mistico {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #272262 100%) !important;
}

.gradient-card-bronze_ambar {
    background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #543310 100%) !important;
}

.gradient-card-esmeralda {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #0f172a 100%) !important;
}

.gradient-card-borgonha {
    background: linear-gradient(135deg, #2d0612 0%, #4a0418 50%, #0f172a 100%) !important;
}

.gradient-card-safira {
    background: linear-gradient(135deg, #082f49 0%, #0c4a6e 50%, #0f172a 100%) !important;
}

/* ==========================================================================
   AJUSTES SOLICITADOS: CANTOS SUPERIORES ARREDONDADOS E REMOÇÃO DE SUBLINHADO
   ========================================================================== */

/* 1. REMOÇÃO DE SUBLINHADO DOS TÍTULOS DE CARDS */
.entry-content .grid-item-title a,
.entry-content .hero-card-post-title a,
.entry-content .entry-title a,
.grid-item-title,
.grid-item-title a,
.grid-item-title a:hover,
.grid-item-title a:focus,
.hero-card-post-title,
.hero-card-post-title a,
.hero-card-post-title a:hover,
.hero-card-post-title a:focus,
.ast-blog-layout-4-grid .entry-title a,
.ast-blog-layout-4-grid .entry-title a:hover,
.ast-blog-layout-4-grid .entry-title a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 2. IMAGEM DO CARD PERFEITAMENTE DENTRO DA BORDA COM CANTOS SUPERIORES ARREDONDADOS */
.grid-item-inner {
    border-radius: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
}

.grid-item-thumb-wrap {
    margin: 0 !important;
    width: 100% !important;
    height: 185px !important;
    max-height: 185px !important;
    overflow: hidden !important;
    position: relative !important;
    border-top-left-radius: 17px !important;
    border-top-right-radius: 17px !important;
    flex-shrink: 0 !important;
}

.grid-item-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-top-left-radius: 17px !important;
    border-top-right-radius: 17px !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.grid-item-inner:hover .grid-item-thumb {
    transform: scale(1.06) !important;
}

/* Margens internas preservadas para o conteúdo abaixo da imagem */
.grid-item-badge-wrap,
.grid-item-title,
.grid-item-excerpt,
.grid-item-footer {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.grid-item-thumb-wrap + .grid-item-badge-wrap {
    margin-top: 18px !important;
}

.grid-item-inner > .grid-item-badge-wrap:first-child {
    margin-top: 22px !important;
}

.grid-item-footer {
    margin-top: auto !important;
    margin-bottom: 20px !important;
}

/* ==========================================================================
   SISTEMA DE CAPITULAÇÃO ARTÍSTICA & DECORATIVA (ESCRIBA DROP CAPS)
   ========================================================================== */

/* 1. Base da Letra Capitular */
.has-escriba-dropcap.dropcap-mode-first_p .entry-content > p:first-of-type::first-letter,
.has-escriba-dropcap.dropcap-mode-first_p .ast-article-single .entry-content > p:first-of-type::first-letter,
.has-escriba-dropcap.dropcap-mode-first_p .entry-content > div:first-of-type > p:first-of-type::first-letter,
.has-escriba-dropcap.dropcap-mode-all_sections .entry-content > p:first-of-type::first-letter,
.has-escriba-dropcap.dropcap-mode-all_sections .entry-content > h2 + p::first-letter,
.has-escriba-dropcap.dropcap-mode-all_sections .entry-content > h3 + p::first-letter,
.has-drop-cap:not(:focus)::first-letter,
.com-capitular::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.82;
    margin: 4px 14px 2px 0;
    padding: 3px 6px 3px 2px;
    font-weight: normal !important;
    font-style: normal !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-block;
    transition: color 0.25s ease;
}

/* 2. Seleção de Família Tipográfica (Rye, Cinzel, Almendra, Unifraktur, Berkshire, Playfair) */
.dropcap-font-rye .entry-content > p:first-of-type::first-letter,
.dropcap-font-rye .entry-content > h2 + p::first-letter,
.dropcap-font-rye .entry-content > h3 + p::first-letter,
.dropcap-font-rye .has-drop-cap::first-letter,
.dropcap-font-rye .com-capitular::first-letter,
.has-drop-cap:not(:focus)::first-letter {
    font-family: 'Rye', serif !important;
    font-size: 3.85rem;
    line-height: 0.86;
}

.dropcap-font-cinzel .entry-content > p:first-of-type::first-letter,
.dropcap-font-cinzel .entry-content > h2 + p::first-letter,
.dropcap-font-cinzel .entry-content > h3 + p::first-letter,
.dropcap-font-cinzel .has-drop-cap::first-letter,
.dropcap-font-cinzel .com-capitular::first-letter {
    font-family: 'Cinzel Decorative', Georgia, serif !important;
}

.dropcap-font-almendra .entry-content > p:first-of-type::first-letter,
.dropcap-font-almendra .entry-content > h2 + p::first-letter,
.dropcap-font-almendra .entry-content > h3 + p::first-letter,
.dropcap-font-almendra .has-drop-cap::first-letter,
.dropcap-font-almendra .com-capitular::first-letter {
    font-family: 'Almendra Display', cursive, serif !important;
    font-size: 4.4rem;
}

.dropcap-font-unifraktur .entry-content > p:first-of-type::first-letter,
.dropcap-font-unifraktur .entry-content > h2 + p::first-letter,
.dropcap-font-unifraktur .entry-content > h3 + p::first-letter,
.dropcap-font-unifraktur .has-drop-cap::first-letter,
.dropcap-font-unifraktur .com-capitular::first-letter {
    font-family: 'UnifrakturMaguntia', cursive, serif !important;
    font-size: 4.5rem;
}

.dropcap-font-berkshire .entry-content > p:first-of-type::first-letter,
.dropcap-font-berkshire .entry-content > h2 + p::first-letter,
.dropcap-font-berkshire .entry-content > h3 + p::first-letter,
.dropcap-font-berkshire .has-drop-cap::first-letter,
.dropcap-font-berkshire .com-capitular::first-letter {
    font-family: 'Berkshire Swash', cursive, serif !important;
    font-size: 4rem;
}

.dropcap-font-playfair .entry-content > p:first-of-type::first-letter,
.dropcap-font-playfair .entry-content > h2 + p::first-letter,
.dropcap-font-playfair .entry-content > h3 + p::first-letter,
.dropcap-font-playfair .has-drop-cap::first-letter,
.dropcap-font-playfair .com-capitular::first-letter {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic;
}

/* 3. Cores e Efeitos Visuais */
.dropcap-color-ouro .entry-content > p:first-of-type::first-letter,
.dropcap-color-ouro .entry-content > h2 + p::first-letter,
.dropcap-color-ouro .entry-content > h3 + p::first-letter,
.dropcap-color-ouro .has-drop-cap::first-letter,
.dropcap-color-ouro .com-capitular::first-letter,
.has-drop-cap:not(:focus)::first-letter {
    color: #facc15 !important;
    text-shadow: none;
}

.dropcap-color-ambar .entry-content > p:first-of-type::first-letter,
.dropcap-color-ambar .entry-content > h2 + p::first-letter,
.dropcap-color-ambar .entry-content > h3 + p::first-letter,
.dropcap-color-ambar .has-drop-cap::first-letter,
.dropcap-color-ambar .com-capitular::first-letter {
    color: #f59e0b !important;
    text-shadow: none;
}

.dropcap-color-marfim .entry-content > p:first-of-type::first-letter,
.dropcap-color-marfim .entry-content > h2 + p::first-letter,
.dropcap-color-marfim .entry-content > h3 + p::first-letter,
.dropcap-color-marfim .has-drop-cap::first-letter,
.dropcap-color-marfim .com-capitular::first-letter {
    color: #f8fafc !important;
    text-shadow: none;
}

.dropcap-color-borgonha .entry-content > p:first-of-type::first-letter,
.dropcap-color-borgonha .entry-content > h2 + p::first-letter,
.dropcap-color-borgonha .entry-content > h3 + p::first-letter,
.dropcap-color-borgonha .has-drop-cap::first-letter,
.dropcap-color-borgonha .com-capitular::first-letter {
    color: #e11d48 !important;
    text-shadow: none;
}

.dropcap-color-esmeralda .entry-content > p:first-of-type::first-letter,
.dropcap-color-esmeralda .entry-content > h2 + p::first-letter,
.dropcap-color-esmeralda .entry-content > h3 + p::first-letter,
.dropcap-color-esmeralda .has-drop-cap::first-letter,
.dropcap-color-esmeralda .com-capitular::first-letter {
    color: #10b981 !important;
    text-shadow: none;
}

/* 4. Compatibilidade com Modo Claro (.light-theme) */
.light-theme .dropcap-color-ouro .entry-content > p:first-of-type::first-letter,
.light-theme .dropcap-color-ouro .entry-content > h2 + p::first-letter,
.light-theme .dropcap-color-ouro .entry-content > h3 + p::first-letter,
.light-theme .dropcap-color-ouro .has-drop-cap::first-letter,
.light-theme .dropcap-color-ouro .com-capitular::first-letter,
.light-theme .has-drop-cap:not(:focus)::first-letter {
    color: #b45309 !important;
    text-shadow: none !important;
}

.light-theme .dropcap-color-marfim .entry-content > p:first-of-type::first-letter,
.light-theme .dropcap-color-marfim .entry-content > h2 + p::first-letter,
.light-theme .dropcap-color-marfim .entry-content > h3 + p::first-letter,
.light-theme .dropcap-color-marfim .has-drop-cap::first-letter,
.light-theme .dropcap-color-marfim .com-capitular::first-letter {
    color: #1e293b !important;
    text-shadow: none !important;
}

/* ==========================================================================
   FONTES CAPITULARES & LETRAS CAPITULARES (DROP CAPS)
   ========================================================================== */

@font-face {
    font-family: 'Initials TFB';
    src: url('fonts/Initials-TFB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Portculliard Initials';
    src: url('fonts/PortculliardInitials.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Embossed Germanica';
    src: url('fonts/Embossed-Germanica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fluted Germanica';
    src: url('fonts/Fluted-Germanica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shadowed Germanica';
    src: url('fonts/Shadowed-Germanica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plain Germanica';
    src: url('fonts/Plain-Germanica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fette UNZ Fraktur';
    src: url('fonts/FetteUNZFraktur.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fette Classic UNZ Fraktur';
    src: url('fonts/FetteClassicUNZFraktur.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pamela';
    src: url('fonts/Pamela.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Dearest Friend';
    src: url('fonts/Dearest-Friend.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dearest Friend lite';
    src: url('fonts/Dearest-Friend-lite.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- ESTILIZACAO VISUAL DA LETRA CAPITULAR (DROP CAP) --- */
.entry-content p.has-drop-cap:not(:focus)::first-letter,
.entry-content .has-drop-cap:not(:focus)::first-letter,
p.has-drop-cap:not(:focus)::first-letter,
.has-drop-cap:not(:focus)::first-letter {
    font-family: 'Initials TFB', 'Portculliard Initials', 'Embossed Germanica', Georgia, serif !important;
    float: left !important;
    font-size: 5rem !important;
    line-height: 0.78 !important;
    font-weight: normal !important;
    margin: 4px 12px 2px 0 !important;
    padding: 6px 6px 2px 4px !important;
    color: #facc15 !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

/* Modo Claro: Contraste com tom Dourado Imperial Escuro / Ambar */
html.light-theme .entry-content p.has-drop-cap:not(:focus)::first-letter,
html.light-theme .entry-content .has-drop-cap:not(:focus)::first-letter,
body.light-theme .entry-content p.has-drop-cap:not(:focus)::first-letter,
body.light-theme .entry-content .has-drop-cap:not(:focus)::first-letter,
html.light-theme p.has-drop-cap:not(:focus)::first-letter,
body.light-theme p.has-drop-cap:not(:focus)::first-letter {
    color: #b45309 !important;
    text-shadow: none !important;
}

/* Variacoes Especificas por Estilo de Bloco */
p.is-style-capitular-initials-tfb:not(:focus)::first-letter,
.is-style-capitular-initials-tfb:not(:focus)::first-letter {
    font-family: 'Initials TFB', serif !important;
    font-size: 5.2rem !important;
}

p.is-style-capitular-portculliard:not(:focus)::first-letter,
.is-style-capitular-portculliard:not(:focus)::first-letter {
    font-family: 'Portculliard Initials', serif !important;
    font-size: 5rem !important;
}

p.is-style-capitular-embossed:not(:focus)::first-letter,
.is-style-capitular-embossed:not(:focus)::first-letter {
    font-family: 'Embossed Germanica', serif !important;
    font-size: 4.8rem !important;
}

p.is-style-capitular-fraktur:not(:focus)::first-letter,
.is-style-capitular-fraktur:not(:focus)::first-letter {
    font-family: 'Fette UNZ Fraktur', serif !important;
    font-size: 4.8rem !important;
}

p.is-style-capitular-fraktur-classic:not(:focus)::first-letter,
.is-style-capitular-fraktur-classic:not(:focus)::first-letter {
    font-family: 'Fette Classic UNZ Fraktur', serif !important;
    font-size: 4.8rem !important;
}

p.is-style-capitular-pamela:not(:focus)::first-letter,
.is-style-capitular-pamela:not(:focus)::first-letter {
    font-family: 'Pamela', serif !important;
    font-size: 5rem !important;
}

p.is-style-capitular-plain-germanica:not(:focus)::first-letter,
.is-style-capitular-plain-germanica:not(:focus)::first-letter {
    font-family: 'Plain Germanica', serif !important;
    font-size: 4.8rem !important;
}

p.is-style-capitular-shadowed:not(:focus)::first-letter,
.is-style-capitular-shadowed:not(:focus)::first-letter {
    font-family: 'Shadowed Germanica', serif !important;
    font-size: 4.8rem !important;
}

p.is-style-capitular-fluted:not(:focus)::first-letter,
.is-style-capitular-fluted:not(:focus)::first-letter {
    font-family: 'Fluted Germanica', serif !important;
    font-size: 4.8rem !important;
}
p.is-style-capitular-dearest-friend:not(:focus)::first-letter,
.is-style-capitular-dearest-friend:not(:focus)::first-letter {
    font-family: 'Dearest Friend', serif !important;
    font-size: 5rem !important;
}

p.is-style-capitular-dearest-friend-lite:not(:focus)::first-letter,
.is-style-capitular-dearest-friend-lite:not(:focus)::first-letter {
    font-family: 'Dearest Friend lite', serif !important;
    font-size: 5rem !important;
}

/* ==========================================================================
   GRID DE CARDS DE PÁGINAS & MODAL DE LEITURA (ESCRIBA)
   ========================================================================== */

.escriba-parece-biblico-wrapper {
    width: 100%;
    margin: 20px auto 44px auto;
}

/* Grade com 5 cards por linha */
.escriba-page-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 1360px) {
    .escriba-page-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 1080px) {
    .escriba-page-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .escriba-page-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .escriba-page-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Card Pequeno na Proporção 21:9 com Imagem ao Lado */
.escriba-page-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    cursor: pointer;
    display: flex;
    box-sizing: border-box;
    transition: transform 0.22s ease;
}

.escriba-page-card-inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px; /* Bordas arredondadas não muito redondas */
    overflow: hidden;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.45);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
    min-height: 105px;
    aspect-ratio: 21 / 9;
    box-sizing: border-box;
}

.escriba-page-card:hover .escriba-page-card-inner {
    transform: translateY(-3px);
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.65), 0 0 16px rgba(234, 179, 8, 0.15);
}

/* Lado Esquerdo: Mídia (Imagem ou Gradiente Decorativo) */
.escriba-card-side-media {
    position: relative;
    flex: 0 0 38%;
    max-width: 38%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

.escriba-card-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.escriba-page-card:hover .escriba-card-side-img {
    transform: scale(1.08);
}

.escriba-card-side-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.escriba-card-badge-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
    line-height: 1.2;
}

/* Lado Direito: Conteúdo Compacto */
.escriba-card-side-body {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.escriba-card-side-title {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    margin: 0 0 3px 0 !important;
    color: #f1f5f9 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Playfair Display', serif !important;
}

.escriba-card-side-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.escriba-page-card:hover .escriba-card-side-title a {
    color: #facc15 !important;
}

.escriba-card-side-excerpt {
    font-size: 0.70rem !important;
    line-height: 1.32 !important;
    color: #94a3b8 !important;
    margin: 0 0 5px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.escriba-card-side-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    margin-top: auto;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.escriba-card-reading-time {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.escriba-card-reading-time i {
    color: #eab308;
    font-size: 0.65rem;
}

.escriba-card-action-link {
    color: #eab308;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.escriba-page-card:hover .escriba-card-action-link {
    transform: translateX(3px);
}

.escriba-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 48px 16px;
    font-size: 1.05rem;
}

/* Modo Claro (.light-theme) */
.light-theme .escriba-page-card-inner {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.light-theme .escriba-page-card:hover .escriba-page-card-inner {
    border-color: rgba(234, 179, 8, 0.6) !important;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.12), 0 0 14px rgba(234, 179, 8, 0.2) !important;
}

.light-theme .escriba-card-side-title {
    color: #0f172a !important;
}

.light-theme .escriba-card-side-excerpt {
    color: #64748b !important;
}

.light-theme .escriba-card-side-footer {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================================================
   MODAL DE LEITURA - JANELA IMERSIVA & FERRAMENTAS
   ========================================================================== */

body.escriba-modal-open {
    overflow: hidden !important;
}

.escriba-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(8, 14, 26, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.escriba-modal-backdrop.escriba-modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.escriba-modal-dialog {
    background: linear-gradient(165deg, #131d2e 0%, #0c121e 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.85), 0 0 35px 0 rgba(234, 179, 8, 0.08);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(14px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s ease;
}

.escriba-modal-backdrop.escriba-modal-visible .escriba-modal-dialog {
    transform: scale(1) translateY(0);
}

.escriba-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: none;
    padding: 0;
}

.escriba-modal-close-btn:hover {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.45);
    color: #facc15;
    transform: rotate(90deg) scale(1.05);
}

.escriba-modal-scroll-area {
    padding: 38px 46px 48px 46px;
    overflow-y: auto;
    scroll-behavior: smooth;
    max-height: 90vh;
    box-sizing: border-box;
}

.escriba-modal-scroll-area::-webkit-scrollbar {
    width: 7px;
}
.escriba-modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.escriba-modal-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}
.escriba-modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 179, 8, 0.45);
}

.escriba-modal-header {
    margin-bottom: 24px;
}

.escriba-modal-title {
    font-size: 2.15rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #f8fafc !important;
    margin: 0 0 14px 0 !important;
    padding-right: 40px !important;
}

.escriba-modal-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    margin-bottom: 22px !important;
}

.escriba-modal-meta .author a {
    color: inherit !important;
    text-decoration: none !important;
}

.escriba-modal-toolbar {
    margin-top: 14px !important;
    margin-bottom: 28px !important;
}

.escriba-modal-content {
    color: #e2e8f0;
    line-height: 1.75;
}

.escriba-modal-content p {
    margin-bottom: 1.4em !important;
    color: inherit !important;
}

.escriba-modal-content h1,
.escriba-modal-content h2,
.escriba-modal-content h3,
.escriba-modal-content h4,
.escriba-modal-content h5,
.escriba-modal-content h6 {
    color: #f8fafc !important;
    margin-top: 1.6em !important;
    margin-bottom: 0.6em !important;
    line-height: 1.35 !important;
}

.escriba-modal-content blockquote {
    border-left: 3px solid #eab308 !important;
    background: rgba(234, 179, 8, 0.05) !important;
    padding: 16px 20px !important;
    border-radius: 0 10px 10px 0 !important;
    margin: 1.6em 0 !important;
    color: #f1f5f9 !important;
    font-style: italic !important;
}

/* Modo Foco no Modal */
.escriba-modal-backdrop.focus-reading-mode .escriba-modal-dialog {
    max-width: 980px !important;
}

.escriba-modal-backdrop.focus-reading-mode .escriba-modal-scroll-area {
    padding: 46px 68px 60px 68px !important;
}

.escriba-modal-backdrop.focus-reading-mode .escriba-modal-content {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Compatibilidade com Modo Claro (.light-theme) */
.light-theme .escriba-modal-dialog {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.25), 0 0 35px 0 rgba(234, 179, 8, 0.05) !important;
}

.light-theme .escriba-modal-close-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

.light-theme .escriba-modal-close-btn:hover {
    background: rgba(234, 179, 8, 0.15) !important;
    border-color: rgba(234, 179, 8, 0.5) !important;
    color: #b45309 !important;
}

.light-theme .escriba-modal-title {
    color: #0f172a !important;
}

.light-theme .escriba-modal-meta {
    color: #64748b !important;
}

.light-theme .escriba-modal-content {
    color: #334155 !important;
}

.light-theme .escriba-modal-content h1,
.light-theme .escriba-modal-content h2,
.light-theme .escriba-modal-content h3,
.light-theme .escriba-modal-content h4,
.light-theme .escriba-modal-content h5,
.light-theme .escriba-modal-content h6 {
    color: #0f172a !important;
}

.light-theme .escriba-modal-content blockquote {
    background: rgba(234, 179, 8, 0.08) !important;
    color: #1e293b !important;
}

@media (max-width: 768px) {
    .escriba-modal-scroll-area {
        padding: 26px 20px 32px 20px !important;
    }
    .escriba-modal-title {
        font-size: 1.55rem !important;
    }
    .escriba-modal-backdrop.focus-reading-mode .escriba-modal-scroll-area {
        padding: 26px 20px 32px 20px !important;
    }
}
