/**
 * Estudos Bíblicos — Página pública
 * Identidade EBD 360: dourado (#C5A059) + navy (#0F172A) + serif Merriweather.
 *
 * @package EBD360_Theme
 */

body {
    background: var(--ebd-bg, #f6f8fb);
}

.ebd-estudos-page {
    --est-gold: #c5a059;
    --est-gold-hover: #b48e47;
    --est-gold-soft: rgba(197, 160, 89, .12);
    --est-navy: #0f172a;
    --est-navy-2: #1a2634;
    --est-ink: #1e293b;
    --est-muted: #64748b;
    --est-line: rgba(15, 23, 42, .07);
    min-height: 100vh;
    background: var(--ebd-bg, #f6f8fb);
    font-family: var(--ebd-font-sans, 'Inter', sans-serif);
}

.ebd-estudos-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Botões (escopo da página) ───────────────────────────── */
.ebd-estudos-page .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.ebd-estudos-page .hp-btn--gold {
    background: var(--est-gold);
    color: #fff;
    box-shadow: 0 14px 28px rgba(197, 160, 89, .24);
}

.ebd-estudos-page .hp-btn--gold:hover {
    background: var(--est-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(197, 160, 89, .32);
}

.ebd-estudos-page .hp-btn--outline-dark {
    background: #fff;
    border-color: var(--est-line);
    color: var(--est-navy);
}

.ebd-estudos-page .hp-btn--outline-dark:hover {
    border-color: var(--est-gold);
    color: var(--est-gold-hover);
    transform: translateY(-2px);
}

.ebd-estudos-page .hp-btn--outline-light {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.ebd-estudos-page .hp-btn--outline-light:hover {
    border-color: var(--est-gold);
    color: var(--est-gold);
    background: rgba(197, 160, 89, .1);
}

.ebd-estudos-page .hp-btn--sm {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 13px;
}

/* ── Badge ───────────────────────────────────────────────── */
.ebd-estudos-page .hp-badge--gold {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(197, 160, 89, .14);
    border: 1px solid rgba(197, 160, 89, .4);
    color: var(--est-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────── */
.ebd-est-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #131f33 60%, #0c1422 100%);
    padding: 56px 0 72px;
    color: #fff;
}

.ebd-est-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: flex-end;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

.ebd-est-hero .ebd-res-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.ebd-est-hero .ebd-res-hero__breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}

.ebd-est-hero .ebd-res-hero__breadcrumbs a:hover {
    color: var(--est-gold);
}

.ebd-est-hero .ebd-breadcrumbs__sep {
    color: #475569;
}

.ebd-est-hero h1 {
    font-family: var(--ebd-font-serif, 'Merriweather', serif);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    margin: 16px 0 14px;
    color: #fff;
    letter-spacing: -.01em;
}

.ebd-est-hero p {
    max-width: 680px;
    margin: 0;
    color: #b6c2d4;
    font-size: 16px;
    line-height: 1.7;
}

.ebd-est-hero__actions .hp-btn {
    white-space: nowrap;
}

/* Glow dourado da identidade */
.ebd-est-hero .ebd-res-hero__glow {
    position: absolute;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(197, 160, 89, .12) 0%, rgba(0, 0, 0, 0) 70%);
    top: -220px;
    right: -120px;
    pointer-events: none;
}

.ebd-est-hero .ebd-res-hero__glow-2 {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(197, 160, 89, .06) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -140px;
    left: -120px;
    pointer-events: none;
}

/* ── Stats ───────────────────────────────────────────────── */
.ebd-est-stats-section {
    margin-top: -40px;
    position: relative;
    z-index: 3;
    padding-bottom: 8px;
}

.ebd-est-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ebd-est-stat-card {
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ebd-est-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--est-gold), #e0c483);
    opacity: 0;
    transition: opacity .2s ease;
}

.ebd-est-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
}

.ebd-est-stat-card:hover::before {
    opacity: 1;
}

.ebd-est-stat-card strong {
    display: block;
    font-family: var(--ebd-font-serif, serif);
    font-size: 28px;
    color: var(--est-navy);
    margin-bottom: 4px;
    line-height: 1;
}

.ebd-est-stat-card span {
    font-size: 12px;
    color: var(--est-muted);
    font-weight: 600;
    letter-spacing: .01em;
}

/* ── Pesquisa ────────────────────────────────────────────── */
.ebd-est-search-section {
    padding: 30px 0 4px;
}

.ebd-est-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 16px;
    padding: 6px 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ebd-est-search-bar:focus-within {
    border-color: rgba(197, 160, 89, .5);
    box-shadow: 0 12px 32px rgba(197, 160, 89, .14);
}

.ebd-est-search-bar .dashicons-search {
    color: var(--est-gold);
    margin-right: 12px;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ebd-est-search-bar input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 15px 0;
    font-size: 15px;
    color: var(--est-ink);
    outline: none;
}

.ebd-est-search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--est-gold);
    border-radius: 50%;
    animation: ebd-est-spin .8s linear infinite;
}

@keyframes ebd-est-spin {
    to { transform: rotate(360deg); }
}

.ebd-est-search-hint {
    margin: 12px 4px 0;
    font-size: 12.5px;
    color: #94a3b8;
}

/* ── Barra de categorias ─────────────────────────────────── */
.ebd-est-cats-bar {
    padding: 20px 0;
    margin-top: 18px;
    border-top: 1px solid var(--est-line);
    border-bottom: 1px solid var(--est-line);
    background: #fff;
}

.ebd-est-cats-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.ebd-est-cats-scroll::-webkit-scrollbar {
    display: none;
}

.ebd-est-cat-btn {
    flex: 0 0 auto;
    border: 1px solid var(--est-line);
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.ebd-est-cat-btn.is-active,
.ebd-est-cat-btn:hover {
    background: var(--est-navy);
    border-color: var(--est-navy);
    color: #fff;
}

.ebd-est-cat-btn.is-active {
    background: var(--est-gold);
    border-color: var(--est-gold);
    color: #fff;
    box-shadow: 0 6px 16px rgba(197, 160, 89, .28);
}

/* ── Destaque ────────────────────────────────────────────── */
.ebd-est-featured-section {
    padding: 40px 0 8px;
}

.ebd-est-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--est-line);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.ebd-est-featured__media {
    position: relative;
    min-height: 340px;
}

.ebd-est-featured__media img,
.ebd-est-featured__placeholder {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.ebd-est-featured__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2634, #0f172a);
    color: rgba(197, 160, 89, .4);
}

.ebd-est-featured__placeholder .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
}

.ebd-est-featured__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ebd-est-featured__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--est-gold);
    margin-bottom: 14px;
}

.ebd-est-featured__label::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--est-gold);
}

.ebd-est-featured__cat {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--est-gold-soft);
    color: var(--est-gold-hover);
    font-size: 12px;
    font-weight: 700;
}

.ebd-est-featured__content h2 {
    font-family: var(--ebd-font-serif, serif);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--est-navy);
}

.ebd-est-featured__content p {
    color: var(--est-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: 15px;
}

.ebd-est-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--est-muted);
    font-size: 13px;
}

.ebd-est-featured__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ebd-est-featured__meta .dashicons {
    color: var(--est-gold);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebd-est-featured__content .hp-btn {
    align-self: flex-start;
}

/* ── Corpo ───────────────────────────────────────────────── */
.ebd-est-body-section {
    padding: 36px 0 44px;
}

.ebd-est-filters-panel {
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.ebd-est-filters-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--est-line);
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    color: var(--est-navy);
    cursor: pointer;
}

.ebd-est-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ebd-filter-select-wrapper label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--est-muted);
    margin-bottom: 7px;
}

.ebd-estudos-page .ebd-form-select {
    width: 100%;
    border: 1px solid var(--est-line);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--est-ink);
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.ebd-estudos-page .ebd-form-select:focus {
    outline: none;
    border-color: rgba(197, 160, 89, .5);
    background: #fff;
}

.ebd-est-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 30px;
    align-items: start;
}

.ebd-est-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ebd-est-control-bar__count {
    font-size: 14px;
    color: var(--est-muted);
}

.ebd-est-control-bar__count strong {
    color: var(--est-navy);
    font-size: 16px;
}

.ebd-est-view-toggle {
    display: inline-flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 12px;
    padding: 4px;
}

.ebd-est-view-toggle .ebd360-view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--est-muted);
    cursor: pointer;
    transition: all .2s ease;
}

.ebd-est-view-toggle .ebd360-view-toggle-btn.active {
    background: var(--est-gold);
    color: #fff;
}

/* ── Grid & Cards ────────────────────────────────────────── */
.ebd-est-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ebd-est-grid--list {
    grid-template-columns: 1fr;
}

.ebd-est-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ebd-est-card {
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ebd-est-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .1);
    border-color: rgba(197, 160, 89, .35);
}

.ebd-est-card--list {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.ebd-est-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.ebd-est-card--list .ebd-est-card__media {
    aspect-ratio: auto;
    min-height: 100%;
}

.ebd-est-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ebd-est-card:hover .ebd-est-card__media img {
    transform: scale(1.05);
}

.ebd-est-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #1a2634, #0f172a);
    color: rgba(197, 160, 89, .35);
}

.ebd-est-card__placeholder .dashicons {
    font-size: 44px;
    width: 44px;
    height: 44px;
}

.ebd-est-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.ebd-est-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.ebd-est-card__meta-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--est-muted);
}

.ebd-est-card__book {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--est-gold-hover);
    font-weight: 700;
}

.ebd-est-card__book .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ebd-est-card__title {
    margin: 0;
    font-family: var(--ebd-font-serif, serif);
    font-size: 18px;
    line-height: 1.38;
}

.ebd-est-card__title a {
    color: var(--est-navy);
    text-decoration: none;
    transition: color .2s ease;
}

.ebd-est-card__title a:hover {
    color: var(--est-gold-hover);
}

.ebd-est-card__excerpt {
    margin: 0;
    color: var(--est-muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ebd-est-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: var(--est-muted);
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--est-line);
}

.ebd-est-card__details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ebd-est-card__details .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.ebd-est-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.ebd-est-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.ebd-est-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.ebd-est-btn--primary {
    background: var(--est-navy);
    color: #fff;
}

.ebd-est-btn--primary:hover {
    background: var(--est-gold);
    color: #fff;
}

.ebd-est-btn--ghost {
    background: #f8fafc;
    border-color: var(--est-line);
    color: #475569;
}

.ebd-est-btn--ghost.is-active,
.ebd-est-btn--ghost:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.ebd-est-btn--icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    background: #f8fafc;
    border-color: var(--est-line);
    color: #475569;
}

.ebd-est-btn--icon:hover {
    border-color: var(--est-gold);
    color: var(--est-gold-hover);
}

.ebd-est-card__share {
    position: relative;
    margin-left: auto;
}

.ebd-est-share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 152px;
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
    padding: 8px;
    display: none;
    z-index: 20;
}

.ebd-est-share-menu.is-open {
    display: grid;
    gap: 2px;
}

.ebd-est-share-menu a,
.ebd-est-share-menu button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ebd-est-share-menu a:hover,
.ebd-est-share-menu button:hover {
    background: #f8fafc;
    color: var(--est-gold-hover);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ebd-est-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.ebd-est-sidebar-card {
    background: #fff;
    border: 1px solid var(--est-line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.ebd-est-sidebar-card h3 {
    margin: 0 0 16px;
    font-family: var(--ebd-font-serif, serif);
    font-size: 16px;
    color: var(--est-navy);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--est-line);
    position: relative;
}

.ebd-est-sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--est-gold);
}

.ebd-est-sidebar-search {
    width: 100%;
    border: 1px solid var(--est-line);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    background: #f8fafc;
}

.ebd-est-sidebar-search:focus {
    outline: none;
    border-color: rgba(197, 160, 89, .5);
    background: #fff;
}

.ebd-est-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ebd-est-sidebar-tag {
    border: 1px solid var(--est-line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all .2s ease;
}

.ebd-est-sidebar-tag:hover {
    background: var(--est-gold);
    border-color: var(--est-gold);
    color: #fff;
}

.ebd-est-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.ebd-est-sidebar-list li {
    margin: 0;
}

.ebd-est-sidebar-list button,
.ebd-est-sidebar-list a {
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.4;
}

.ebd-est-sidebar-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    background: transparent;
    border: 0;
    padding: 9px 10px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ebd-est-sidebar-list button:hover {
    background: #f8fafc;
    color: var(--est-gold-hover);
}

.ebd-est-sidebar-list button span {
    color: var(--est-gold-hover);
    font-weight: 700;
    background: var(--est-gold-soft);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
}

.ebd-est-sidebar-list--links li {
    border-bottom: 1px solid var(--est-line);
}

.ebd-est-sidebar-list--links li:last-child {
    border-bottom: 0;
}

.ebd-est-sidebar-list--links a {
    display: block;
    padding: 11px 0;
    font-weight: 600;
    transition: color .2s ease, padding .2s ease;
}

.ebd-est-sidebar-list--links a:hover {
    color: var(--est-gold-hover);
    padding-left: 4px;
}

.ebd-est-sidebar-card--verse {
    background: linear-gradient(155deg, #1a2634, #0f172a);
    border: 0;
    color: #fff;
}

.ebd-est-sidebar-card--verse h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .12);
}

.ebd-est-sidebar-card--verse blockquote {
    margin: 0 0 12px;
    font-family: var(--ebd-font-serif, serif);
    font-style: italic;
    color: #d6deea;
    line-height: 1.7;
    font-size: 14.5px;
}

.ebd-est-sidebar-card--verse cite {
    font-size: 12px;
    color: var(--est-gold);
    font-weight: 700;
    font-style: normal;
    letter-spacing: .04em;
}

/* ── Seções de livros e temas ────────────────────────────── */
.ebd-est-books-section,
.ebd-est-themes-section,
.ebd-est-continue-section {
    padding: 44px 0;
}

.ebd-est-books-section {
    background:
        radial-gradient(circle at top right, rgba(197, 160, 89, .09), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid var(--est-line);
    border-bottom: 1px solid var(--est-line);
}

.ebd-est-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.ebd-est-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ebd-est-section-head--center .ebd-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.ebd-est-section-head .hp-badge--gold {
    margin-bottom: 14px;
}

.ebd-est-section-head p {
    margin: -8px 0 0;
    color: var(--est-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ebd-section-title {
    font-family: var(--ebd-font-serif, serif);
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 26px;
    color: var(--est-navy);
    position: relative;
    padding-bottom: 14px;
}

.ebd-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--est-gold);
    border-radius: 999px;
}

.ebd-est-books-panel {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.ebd-est-books-group {
    grid-column: span 6;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    position: relative;
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.ebd-est-books-group::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--est-gold), rgba(197, 160, 89, .18));
}

.ebd-est-books-group:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 160, 89, .3);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .09);
}

.ebd-est-books-group--pentateuco,
.ebd-est-books-group--poeticos,
.ebd-est-books-group--evangelhos,
.ebd-est-books-group--apocalipse {
    grid-column: span 4;
}

.ebd-est-books-group--profetas,
.ebd-est-books-group--cartas {
    grid-column: span 8;
}

.ebd-est-books-group__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.ebd-est-books-group__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--est-gold-soft);
    color: var(--est-gold-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ebd-est-books-group__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ebd-est-books-group h3 {
    margin: 0 0 3px;
    font-family: var(--ebd-font-serif, serif);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: var(--est-navy);
}

.ebd-est-books-group__header span:not(.ebd-est-books-group__icon) {
    display: block;
    color: var(--est-muted);
    font-size: 12px;
    font-weight: 700;
}

.ebd-est-books-grid,
.ebd-est-themes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ebd-est-book-btn {
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ebd-est-book-btn:hover {
    background: var(--est-gold);
    border-color: var(--est-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, .22);
}

.ebd-est-themes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ebd-est-theme-card {
    border: 1px solid var(--est-line);
    background: #fff;
    border-radius: 16px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--est-ink);
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.ebd-est-theme-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 160, 89, .4);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.ebd-est-theme-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--est-gold-soft);
    color: var(--est-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebd-est-theme-card__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ebd-est-theme-card:hover .ebd-est-theme-card__icon {
    background: var(--est-gold);
    color: #fff;
}

/* ── Continue estudando ──────────────────────────────────── */
.ebd-est-continue-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    background: linear-gradient(140deg, #1a2634 0%, #0f172a 100%);
    color: #fff;
    border-radius: 24px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.ebd-est-continue-card::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(197, 160, 89, .12) 0%, transparent 70%);
    top: -160px;
    right: -80px;
    pointer-events: none;
}

.ebd-est-continue-card__content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.ebd-est-continue-card h3 {
    margin: 12px 0 16px;
    font-family: var(--ebd-font-serif, serif);
    font-size: 24px;
}

.ebd-est-progress {
    height: 8px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
    max-width: 480px;
}

.ebd-est-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--est-gold), #e0c483);
    border-radius: 999px;
}

.ebd-est-progress__label {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.ebd-est-continue-card .hp-btn {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* ── Relacionados inline ─────────────────────────────────── */
.ebd-est-related-inline {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--est-line);
}

.ebd-est-related-inline__title {
    margin: 0 0 20px;
    font-family: var(--ebd-font-serif, serif);
    font-size: 20px;
    color: var(--est-navy);
}

/* ── Vazio & paginação ───────────────────────────────────── */
.ebd-est-empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed rgba(15, 23, 42, .14);
}

.ebd-est-empty .dashicons {
    font-size: 52px;
    width: 52px;
    height: 52px;
    color: var(--est-gold);
    opacity: .5;
    margin-bottom: 14px;
}

.ebd-est-empty p {
    color: var(--est-muted);
    margin: 0 0 18px;
    font-size: 15px;
}

.ebd-est-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.ebd-est-pagination .ebd-page-btn {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--est-line);
    background: #fff;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    transition: all .2s ease;
}

.ebd-est-pagination .ebd-page-btn.active,
.ebd-est-pagination .ebd-page-btn:hover {
    background: var(--est-gold);
    border-color: var(--est-gold);
    color: #fff;
}

/* ── CTA ─────────────────────────────────────────────────── */
.ebd-est-cta-section {
    padding: 8px 0 60px;
}

.ebd-est-cta {
    background: linear-gradient(140deg, #1a2634 0%, #0f172a 100%);
    color: #fff;
    border-radius: 26px;
    padding: 52px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ebd-est-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 160, 89, .1) 0%, transparent 70%);
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.ebd-est-cta h2 {
    font-family: var(--ebd-font-serif, serif);
    font-size: clamp(26px, 3.4vw, 36px);
    margin: 0 0 14px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.ebd-est-cta p {
    max-width: 640px;
    margin: 0 auto 28px;
    color: #b6c2d4;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.ebd-est-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ebd-est-ajax-target.is-loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s ease;
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ebd-est-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-est-grid,
    .ebd-est-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-est-layout {
        grid-template-columns: 1fr;
    }

    .ebd-est-sidebar {
        position: static;
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-est-sidebar-card--verse {
        grid-column: 1 / -1;
    }

    .ebd-est-themes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ebd-est-books-group,
    .ebd-est-books-group--pentateuco,
    .ebd-est-books-group--poeticos,
    .ebd-est-books-group--evangelhos,
    .ebd-est-books-group--apocalipse,
    .ebd-est-books-group--profetas,
    .ebd-est-books-group--cartas {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .ebd-est-hero {
        padding: 40px 0 60px;
    }

    .ebd-est-hero__grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ebd-est-featured {
        grid-template-columns: 1fr;
    }

    .ebd-est-featured__content {
        padding: 28px;
    }

    .ebd-est-filters-toggle {
        display: flex;
    }

    .ebd-est-filters-grid {
        display: none;
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .ebd-est-filters-grid.is-open {
        display: grid;
    }

    .ebd-est-grid,
    .ebd-est-grid--related {
        grid-template-columns: 1fr;
    }

    .ebd-est-card--list {
        grid-template-columns: 1fr;
    }

    .ebd-est-control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ebd-est-continue-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ebd-est-sidebar {
        grid-template-columns: 1fr;
    }

    .ebd-est-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ebd-est-themes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-est-books-panel {
        grid-template-columns: 1fr;
    }

    .ebd-est-books-group,
    .ebd-est-books-group--pentateuco,
    .ebd-est-books-group--poeticos,
    .ebd-est-books-group--evangelhos,
    .ebd-est-books-group--apocalipse,
    .ebd-est-books-group--profetas,
    .ebd-est-books-group--cartas {
        grid-column: 1 / -1;
    }

    .ebd-est-books-group {
        padding: 18px;
    }

    .ebd-est-books-grid {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ebd-est-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ebd-est-cta {
        padding: 38px 22px;
    }

    .ebd-est-cta__actions .hp-btn {
        width: 100%;
    }
}
