/* Forçar Fundo do Portal Alinhado com o Design System */
body.post-type-archive-ebd360_recurso,
body.tax-ebd360_recurso_cat,
body.single-ebd360_recurso {
    background-color: var(--ebd-bg) !important;
}

.ebd360-recursos-page {
    background: var(--ebd-bg);
    min-height: 100vh;
}

/* Glows e Fundo do Hero */
.ebd-res-hero {
    position: relative;
    background: #0f172a;
    padding: 48px 0 40px;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ebd-res-hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.ebd-res-hero__glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.ebd-res-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

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

.ebd-res-hero__breadcrumbs a:hover {
    color: #C5A059;
}

.ebd-res-hero__breadcrumbs .ebd-breadcrumbs__sep {
    color: #475569;
}

.ebd-res-hero__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #ffffff !important;
}

.ebd-res-hero__subtitle {
    font-size: 16px;
    color: #94a3b8 !important;
    max-width: 600px;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Layout do Hero Premium */
.ebd-res-hero__container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: stretch;
}

.ebd-res-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .ebd-res-hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ebd-res-hero__featured {
        margin-top: 16px;
    }
}

/* Indicadores */
.ebd-res-hero__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    margin-top: 0;
}

.ebd-res-hero__stat-item {
    display: flex;
    flex-direction: column;
}

.ebd-res-hero__stat-item strong {
    font-size: 28px;
    font-weight: 800;
    color: #C5A059;
    line-height: 1;
}

.ebd-res-hero__stat-item span {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 600;
}

/* Card de Destaque no Hero */
.ebd-res-featured-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.ebd-res-featured-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.ebd-res-featured-card__badge,
.ebd-res-featured-card__badge-empty {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #C5A059;
    color: #0b0f19;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.ebd-res-featured-card__badge-empty {
    background: #334155;
    color: #94a3b8;
    position: relative;
    top: auto;
    right: auto;
}

.ebd-res-featured-card__img,
.ebd-res-featured-card__img-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
    background-color: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebd-res-featured-card__img-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.15);
}

.ebd-res-featured-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebd-res-featured-card__meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ebd-res-featured-card__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #C5A059;
    background: rgba(197, 160, 89, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.ebd-res-featured-card__tri {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 180px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ebd-res-featured-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.ebd-res-featured-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.ebd-res-featured-card__detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.ebd-res-featured-card__detail-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #64748b;
}

.ebd-res-featured-card__btn {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: auto;
}

/* Estado Vazio do Destaque */
.ebd-res-featured-card--empty {
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border-style: dashed;
}

/* Barra de Busca Premium */
.ebd-res-hero__search-bar {
    position: relative;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ebd-res-hero__search-bar:focus-within {
    border-color: #C5A059;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1), 0 4px 20px rgba(0,0,0,0.3);
    background: rgba(15, 23, 42, 0.95);
}

.ebd-res-hero__search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    height: 44px;
    font-size: 15px;
    padding-left: 44px;
}

.ebd-res-hero__search-bar input::placeholder {
    color: #64748b;
}

.search-bar-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ebd-res-hero__search-btn {
    background: #C5A059;
    color: #0b0f19;
    border: none;
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ebd-res-hero__search-btn:hover {
    background: #d4af37;
    transform: translateY(-1px);
}

.search-loading-spinner {
    position: absolute;
    right: 110px;
}

/* Categorias Grid */
.ebd-res-cats-section {
    padding: 50px 0;
    background: #0f172a;
}

.ebd-section-subtitle {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.ebd-res-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ebd-res-cat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.ebd-res-cat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.ebd-res-cat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(197, 160, 89, 0.1);
    color: #C5A059;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ebd-res-cat-card__icon span {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ebd-res-cat-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.ebd-res-cat-card__desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
    flex: 1;
    line-height: 1.5;
}

.ebd-res-cat-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.ebd-res-cat-card__btn {
    color: #C5A059;
    font-weight: 600;
}

/* Filtros Rápidos */
.ebd-res-body-section {
    padding: var(--ebd-space-2xl) 0 var(--ebd-space-6xl);
    background: var(--ebd-bg);
}

/* ─── Painel de Navegação Unificado ─────────────────── */
.ebd-res-nav-panel {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: var(--ebd-radius-lg);
    box-shadow: var(--ebd-shadow-md);
    padding: var(--ebd-space-2xl);
    margin-bottom: var(--ebd-space-lg);
}

.ebd-res-nav-panel__divider {
    height: 1px;
    background: var(--ebd-neutral-100);
    margin: var(--ebd-space-2xl) 0;
}

/* Explorar por Formato */
.ebd-res-format-panel__header {
    display: flex;
    align-items: flex-start;
    gap: var(--ebd-space-lg);
    margin-bottom: var(--ebd-space-xl);
}

.ebd-res-format-panel__header-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--ebd-radius-lg);
    background: var(--ebd-gold-light);
    color: var(--ebd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.ebd-res-format-panel__header-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ebd-res-format-panel__title {
    font-family: var(--ebd-font-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--ebd-primary);
    letter-spacing: -0.3px;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ebd-res-format-panel__subtitle {
    font-family: var(--ebd-font-sans);
    font-size: 14px;
    color: var(--ebd-neutral-400);
    margin: 0;
    line-height: 1.6;
    max-width: 560px;
}

.ebd-res-quick-filters {
    display: flex;
    gap: var(--ebd-space-md);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--ebd-neutral-300) transparent;
    -webkit-overflow-scrolling: touch;
}

.ebd-res-quick-filters::-webkit-scrollbar {
    height: 5px;
}

.ebd-res-quick-filters::-webkit-scrollbar-track {
    background: transparent;
}

.ebd-res-quick-filters::-webkit-scrollbar-thumb {
    background-color: var(--ebd-neutral-300);
    border-radius: var(--ebd-radius-full);
}

/* Botões Premium de Categoria */
.ebd-res-qbtn {
    background: var(--ebd-neutral-50);
    border: 1.5px solid var(--ebd-neutral-200);
    color: var(--ebd-neutral-600);
    padding: var(--ebd-space-lg) var(--ebd-space-md);
    border-radius: var(--ebd-radius-lg);
    font-family: var(--ebd-font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ebd-space-sm);
    min-width: 108px;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ebd-shadow-xs);
}

.ebd-res-qbtn__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ebd-radius-md);
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebd-res-qbtn__icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--ebd-neutral-400);
    transition: color 0.25s ease;
}

.ebd-res-qbtn__label {
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
}

.ebd-res-qbtn:hover {
    color: var(--ebd-primary);
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: var(--ebd-shadow-sm);
    transform: translateY(-2px);
}

.ebd-res-qbtn:hover .ebd-res-qbtn__icon {
    border-color: rgba(197, 160, 89, 0.35);
    background: var(--ebd-gold-light);
}

.ebd-res-qbtn:hover .ebd-res-qbtn__icon .dashicons {
    color: var(--ebd-gold);
}

.ebd-res-qbtn.active {
    background: linear-gradient(145deg, var(--ebd-primary) 0%, #243447 100%);
    border-color: var(--ebd-primary);
    color: #ffffff;
    box-shadow: var(--ebd-shadow-md);
    transform: translateY(-1px);
}

.ebd-res-qbtn.active .ebd-res-qbtn__icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.ebd-res-qbtn.active .ebd-res-qbtn__icon .dashicons {
    color: var(--ebd-gold);
}

/* Área dos Filtros */
.ebd-res-filters-panel__title {
    font-family: var(--ebd-font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ebd-neutral-400);
    margin: 0 0 var(--ebd-space-lg);
    display: flex;
    align-items: center;
    gap: var(--ebd-space-sm);
}

.ebd-res-filters-panel__title .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--ebd-gold);
}

.ebd-res-selects-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ebd-space-lg);
}

.ebd-filter-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--ebd-space-sm);
    min-width: 0;
}

.ebd-filter-select-label {
    font-family: var(--ebd-font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ebd-neutral-400);
}

.ebd-filter-select-label--inline {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    color: var(--ebd-neutral-600);
    white-space: nowrap;
}

/* Select System Padronizado */
.ebd-res-select {
    width: 100%;
    height: 44px;
    background-color: var(--ebd-neutral-50);
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2394A3B8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    border: 1.5px solid var(--ebd-neutral-200);
    color: var(--ebd-neutral-800);
    padding: 0 40px 0 16px;
    border-radius: var(--ebd-radius-md);
    outline: none;
    cursor: pointer;
    font-family: var(--ebd-font-sans);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ebd-res-select:hover {
    border-color: var(--ebd-neutral-300);
    background-color: #ffffff;
}

.ebd-res-select:focus {
    border-color: var(--ebd-gold);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

/* Barra de Controle */
.ebd-res-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ebd-space-lg);
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: var(--ebd-radius-lg);
    padding: var(--ebd-space-md) var(--ebd-space-xl);
    box-shadow: var(--ebd-shadow-sm);
    margin-bottom: var(--ebd-space-lg);
}

.ebd-res-control-bar__count {
    display: flex;
    align-items: center;
    gap: var(--ebd-space-md);
    min-width: 0;
}

.ebd-res-control-bar__count-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--ebd-radius-md);
    background: var(--ebd-gold-light);
    color: var(--ebd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebd-res-control-bar__count-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebd-res-control-bar__count-text {
    font-family: var(--ebd-font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ebd-neutral-600);
    line-height: 1.3;
}

.ebd-res-control-bar__count-text strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--ebd-primary);
    margin-right: 4px;
}

.ebd-res-control-bar__actions {
    display: flex;
    align-items: center;
    gap: var(--ebd-space-lg);
    flex-shrink: 0;
}

.ebd-res-view-toggle {
    height: 44px;
}

.ebd-res-view-toggle .ebd360-view-toggle {
    display: flex;
    border: 1.5px solid var(--ebd-neutral-200);
    border-radius: var(--ebd-radius-md);
    overflow: hidden;
    background: var(--ebd-neutral-50);
    height: 44px;
    padding: 3px;
    box-sizing: border-box;
}

.ebd-res-view-toggle .ebd360-view-toggle-btn {
    background: none;
    border: none;
    padding: 0 16px;
    cursor: default;
    color: var(--ebd-neutral-400);
    font-family: var(--ebd-font-sans);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: calc(var(--ebd-radius-md) - 2px);
    transition: all 0.2s ease;
    height: 100%;
}

.ebd-res-view-toggle .ebd360-view-toggle-btn.active {
    background: var(--ebd-primary);
    color: #ffffff;
    box-shadow: var(--ebd-shadow-xs);
}

.ebd-res-view-toggle .ebd360-view-toggle-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.ebd-filter-select-wrapper--order {
    flex-direction: row;
    align-items: center;
    gap: var(--ebd-space-md);
    min-width: 220px;
}

.ebd-res-select--sm {
    height: 44px;
    padding: 0 36px 0 14px;
    font-size: 13px;
    min-width: 180px;
    background-position: right 12px center;
}

/* Layout Grid */
.ebd-res-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--ebd-space-2xl);
    align-items: start;
}

.ebd-res-main-content {
    min-width: 0;
}

.ebd-res-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--ebd-space-xl);
}

.ebd-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Cards de Recurso */
/* Cards de Recurso Premium */
.ebd-res-card--premium {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: var(--ebd-shadow-sm);
}

.ebd-res-card--premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--ebd-shadow-lg);
    border-color: var(--ebd-gold);
}

.ebd-res-card__thumb {
    position: relative;
    height: 180px;
    background: var(--ebd-neutral-100);
    overflow: hidden;
}

.ebd-res-card__thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.ebd-res-card--premium:hover .ebd-res-card__thumb-img {
    transform: scale(1.08);
}

.ebd-res-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ebd-neutral-100);
    color: var(--ebd-neutral-300);
}

.ebd-res-card__thumb-placeholder span {
    font-size: 64px;
    width: 64px;
    height: 64px;
}

.ebd-res-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 38, 52, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ebd-res-card--premium:hover .ebd-res-card__overlay {
    opacity: 1;
}

.ebd-res-card__badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 38, 52, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.ebd-res-card__fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    box-shadow: var(--ebd-shadow-xs);
    color: var(--ebd-neutral-400);
}

.ebd-res-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ebd-res-card__meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.ebd-res-card__meta-size {
    color: var(--ebd-gold);
}

.ebd-res-card__meta-trimestre {
    color: var(--ebd-neutral-600);
    background: var(--ebd-neutral-100);
    padding: 2px 6px;
    border-radius: 4px;
}

.ebd-res-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ebd-primary);
    margin: 0 0 10px;
    line-height: 1.4;
}

.ebd-res-card__title a {
    color: var(--ebd-primary);
    text-decoration: none;
}

.ebd-res-card--premium:hover .ebd-res-card__title a {
    color: var(--ebd-gold);
}

.ebd-res-card__desc {
    font-size: 14px;
    color: var(--ebd-neutral-600);
    margin: 0 0 24px;
    line-height: 1.5;
    flex: 1;
}

.ebd-res-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ebd-neutral-100);
    padding-top: 16px;
    font-size: 13px;
    color: var(--ebd-neutral-400);
}

.ebd-res-card__stats, .ebd-res-card__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ebd-res-card__stats span, .ebd-res-card__author span {
    font-size: 14px;
    color: var(--ebd-neutral-400);
}

.ebd-res-card__author {
    color: var(--ebd-neutral-600);
    font-weight: 500;
}

/* Sidebar Widgets Premium */
.ebd-res-widget {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: var(--ebd-radius-lg);
    padding: var(--ebd-space-xl);
    box-shadow: var(--ebd-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ebd-res-widget:hover {
    box-shadow: var(--ebd-shadow-md);
}

.ebd-res-widget__title {
    font-family: var(--ebd-font-sans);
    font-size: 14px;
    font-weight: 800;
    color: var(--ebd-primary);
    margin: 0 0 var(--ebd-space-lg);
    display: flex;
    align-items: center;
    gap: var(--ebd-space-md);
    border-bottom: 1.5px solid var(--ebd-neutral-100);
    padding-bottom: var(--ebd-space-md);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ebd-res-widget__title-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--ebd-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebd-res-widget__title-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebd-res-widget__title-icon--heart {
    background: rgba(225, 29, 72, 0.1);
    color: #E11D48;
}

.ebd-res-widget__title-icon--gold {
    background: var(--ebd-gold-light);
    color: var(--ebd-gold);
}

.ebd-res-widget__title-icon--blue {
    background: var(--ebd-info-light);
    color: var(--ebd-info);
}

.ebd-res-widget__list {
    display: flex;
    flex-direction: column;
    gap: var(--ebd-space-md);
    min-height: 120px;
}

.ebd-res-widget__item {
    text-decoration: none;
    display: flex;
    gap: var(--ebd-space-md);
    align-items: center;
    padding: var(--ebd-space-sm);
    margin: calc(var(--ebd-space-sm) * -1);
    border-radius: var(--ebd-radius-md);
    transition: all 0.25s ease;
    color: var(--ebd-neutral-600);
}

.ebd-res-widget__item:hover {
    transform: translateX(4px);
    background: var(--ebd-neutral-50);
}

.ebd-res-widget__item:hover .ebd-res-widget__item-info strong {
    color: var(--ebd-gold);
}

.ebd-res-widget__thumb,
.ebd-res-widget__thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--ebd-radius-md);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--ebd-neutral-200);
}

.ebd-res-widget__thumb-placeholder {
    background: var(--ebd-neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebd-neutral-300);
}

.ebd-res-widget__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ebd-res-widget__item-info strong {
    font-family: var(--ebd-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--ebd-primary);
    line-height: 1.35;
    transition: color 0.2s;
}

.ebd-res-widget__item-info small {
    font-size: 12px;
    color: var(--ebd-neutral-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Paginação */
.ebd-res-pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.ebd-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--ebd-neutral-200);
    background: #ffffff;
    color: var(--ebd-neutral-800);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--ebd-shadow-xs);
}

.ebd-page-btn:hover {
    border-color: var(--ebd-neutral-400);
    background: var(--ebd-neutral-50);
    color: var(--ebd-primary);
}

.ebd-page-btn.active {
    background: var(--ebd-gold);
    border-color: var(--ebd-gold);
    color: #ffffff;
    box-shadow: var(--ebd-shadow-xs);
}

/* Detalhes do Recurso */
.ebd-res-detail-hero {
    background: #0f172a;
    padding: 60px 0;
    color: #ffffff;
}

.ebd-res-detail-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
}

.ebd-res-detail-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 12px 0 8px;
}

.ebd-res-detail-meta-row {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.ebd-res-detail-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ebd-res-detail-actions-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ebd-btn-fav-large {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    color: var(--ebd-neutral-800);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: var(--ebd-shadow-xs);
}

.ebd-btn-fav-large:hover, .ebd-btn-fav-large.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #ffffff;
}

/* Preview Box & Content Panels */
.ebd-res-preview-box,
.ebd-res-description-box,
.ebd-res-share-box {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--ebd-shadow-sm);
}

.ebd-res-share-box {
    padding: 24px 32px;
}

.ebd-res-share-box h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ebd-primary);
}

.ebd-res-content-body {
    color: var(--ebd-neutral-600);
    font-size: 15px;
    line-height: 1.75;
}

.ebd-res-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ebd-primary);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ebd-res-preview-container {
    background: #030712;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebd-res-preview-frame {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.ebd-res-preview-fallback {
    padding: 60px 40px;
    text-align: center;
    color: #64748b;
    max-width: 500px;
}

.ebd-res-preview-fallback .fallback-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #C5A059;
    margin-bottom: 20px;
}

.ebd-res-preview-fallback p {
    font-size: 14px;
    line-height: 1.6;
}

/* Compartilhamento */
.ebd-res-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ebd-res-share-buttons--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ebd-share-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    transition: transform 0.2s;
}

.ebd-share-btn:hover {
    transform: translateY(-2px);
}

.ebd-share-whatsapp { background: #25d366; }
.ebd-share-facebook { background: #1877f2; }
.ebd-share-telegram { background: #0088cc; }
.ebd-share-copy { 
    background: #ffffff; 
    border: 1px solid var(--ebd-neutral-300); 
    color: var(--ebd-neutral-800); 
    cursor: pointer;
    box-shadow: var(--ebd-shadow-xs);
}
.ebd-share-copy:hover {
    background: var(--ebd-neutral-50);
}

/* Metadados */
.ebd-res-meta-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ebd-res-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.ebd-res-meta-item span {
    color: #64748b;
}

.ebd-res-meta-item strong {
    color: var(--ebd-primary);
}

/* Responsividade Mobile */
@media (max-width: 991px) {
    .ebd-res-layout-grid {
        grid-template-columns: 1fr;
        gap: var(--ebd-space-2xl);
    }

    .ebd-res-nav-panel {
        padding: var(--ebd-space-xl);
    }

    .ebd-res-format-panel__header {
        flex-direction: column;
        gap: var(--ebd-space-md);
    }
}

@media (max-width: 768px) {
    .ebd-res-body-section {
        padding: var(--ebd-space-xl) 0 var(--ebd-space-5xl);
    }

    .ebd-res-nav-panel {
        padding: var(--ebd-space-lg);
        margin-bottom: var(--ebd-space-md);
    }

    .ebd-res-nav-panel__divider {
        margin: var(--ebd-space-xl) 0;
    }

    .ebd-res-format-panel__title {
        font-size: 20px;
    }

    .ebd-res-selects-panel {
        grid-template-columns: 1fr;
    }

    .ebd-res-control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--ebd-space-md);
        padding: var(--ebd-space-lg);
        margin-bottom: var(--ebd-space-md);
    }

    .ebd-res-control-bar__actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--ebd-space-md);
    }

    .ebd-filter-select-wrapper--order {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
    }

    .ebd-res-select--sm {
        min-width: 0;
        width: 100%;
    }

    .ebd-res-view-toggle {
        width: 100%;
    }

    .ebd-res-view-toggle .ebd360-view-toggle {
        width: 100%;
        justify-content: center;
    }

    .ebd-res-sidebar {
        order: 99;
    }

    .ebd-res-detail-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ebd-res-detail-actions-area {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .ebd-res-hero__stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* Estado Vazio */
.ebd-res-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 16px;
    color: var(--ebd-neutral-600);
    box-shadow: var(--ebd-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ebd-res-empty span.dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--ebd-gold);
}

/* Empty State da Sidebar */
.ebd-res-widget__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ebd-space-2xl) var(--ebd-space-lg);
    text-align: center;
    background: var(--ebd-neutral-50);
    border: 1.5px dashed var(--ebd-neutral-300);
    border-radius: var(--ebd-radius-lg);
    color: var(--ebd-neutral-400);
    flex: 1;
    min-height: 140px;
}

.ebd-res-widget__empty-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ebd-radius-full);
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ebd-space-md);
    color: var(--ebd-neutral-400);
}

.ebd-res-widget__empty-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ebd-res-widget__empty-state strong {
    font-family: var(--ebd-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--ebd-primary);
    margin-bottom: 6px;
}

.ebd-res-widget__empty-state p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    color: var(--ebd-neutral-400);
    max-width: 220px;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE RECURSO — Página Premium de Visualização
   ═══════════════════════════════════════════════════════════ */

.ebd-single-recurso-wrapper {
    padding-bottom: var(--ebd-space-5xl);
}

/* Badges reutilizados no hero */
.ebd-res-single-hero .hp-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ebd-res-single-hero .hp-badge--gold {
    background: rgba(197, 160, 89, 0.15);
    color: var(--ebd-gold);
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.ebd-res-single-hero .hp-badge--outline-light {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ebd-res-single-hero .hp-badge--soft {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    padding: 4px 12px;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* Hero */
.ebd-res-single-hero {
    position: relative;
    background: #0f172a;
    padding: 40px 0 48px;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ebd-res-single-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-top: 20px;
}

.ebd-res-single-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ebd-res-single-hero__title {
    font-family: var(--font-heading, var(--ebd-font-serif));
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #ffffff !important;
}

.ebd-res-single-hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8 !important;
    max-width: 720px;
    margin: 0 0 18px;
}

.ebd-res-single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.ebd-res-single-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ebd-res-single-hero__meta .dashicons {
    color: var(--ebd-gold);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebd-res-single-hero__meta-sep {
    display: none;
}

.ebd-res-single-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ebd-res-single-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.ebd-res-single-hero__actions .hp-btn,
.ebd-res-single-hero__actions .ebd-btn-fav-large {
    width: 100%;
    justify-content: center;
}

/* Layout principal */
.ebd-res-single-body {
    padding: var(--ebd-space-2xl) 0 var(--ebd-space-3xl);
}

.ebd-res-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--ebd-space-2xl);
    align-items: start;
}

.ebd-res-single-main {
    display: flex;
    flex-direction: column;
    gap: var(--ebd-space-xl);
    min-width: 0;
}

.ebd-res-single-sidebar {
    position: sticky;
    top: 96px;
}

/* Cards de seção */
.ebd-res-viewer-card,
.ebd-res-about-card,
.ebd-res-share-card {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--ebd-shadow-sm);
}

.ebd-res-section-title {
    font-family: var(--ebd-font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ebd-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ebd-res-section-title__icon,
.ebd-res-about-card__icon,
.ebd-res-share-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ebd-gold);
    flex-shrink: 0;
}

.ebd-res-about-card__header,
.ebd-res-share-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ebd-res-about-card__body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ebd-neutral-600);
}

.ebd-res-about-card__body h3,
.ebd-res-about-card__body h4 {
    font-family: var(--ebd-font-serif);
    color: var(--ebd-primary);
    margin: 1.5em 0 0.75em;
}

.ebd-res-about-card__body p {
    margin-bottom: 1em;
}

/* Visualizador */
.ebd-res-viewer-card__header {
    margin-bottom: 20px;
}

.ebd-res-viewer {
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 12px;
    overflow: hidden;
    background: #030712;
}

.ebd-res-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.ebd-res-viewer__toolbar-left,
.ebd-res-viewer__toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ebd-res-viewer__filename {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #e2e8f0;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebd-res-viewer__page-info {
    font-size: 12px;
    color: #94a3b8;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ebd-res-viewer-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ebd-res-viewer-btn:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.35);
    color: var(--ebd-gold);
}

.ebd-res-viewer-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebd-res-viewer__stage {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ebd-res-viewer__stage:fullscreen {
    background: #030712;
    padding: 20px;
}

.ebd-res-viewer__stage:fullscreen .ebd-res-preview-frame {
    height: calc(100vh - 80px);
}

.ebd-res-preview-frame {
    height: 560px;
    transform: none !important;
    transform-origin: top center;
}

.ebd-res-viewer-video {
    width: 100%;
    max-height: 560px;
    background: #000;
}

.ebd-res-viewer-audio {
    width: 100%;
    max-width: 640px;
    padding: 48px 32px;
    text-align: center;
}

.ebd-res-viewer-audio__icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--ebd-gold);
    margin-bottom: 20px;
}

.ebd-res-viewer-image-wrap {
    width: 100%;
    overflow: auto;
    max-height: 560px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebd-res-viewer-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.ebd-res-viewer-slides-note {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 16px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(17, 24, 39, 0.92);
    text-align: center;
}

/* Compartilhamento com identidade EBD 360 */
.ebd-res-share-card {
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.06), rgba(15, 23, 42, 0.02)),
        #ffffff;
}

.ebd-res-share-buttons--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ebd-share-btn,
.ebd-share-whatsapp,
.ebd-share-facebook,
.ebd-share-telegram,
.ebd-share-x,
.ebd-share-linkedin,
.ebd-share-copy {
    min-height: 46px;
    justify-content: center;
    background: #ffffff;
    color: var(--ebd-primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.ebd-share-btn .dashicons,
.ebd-share-btn .ebd-share-icon {
    width: 22px;
    height: 22px;
    font-size: 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ebd-gold);
    background: rgba(197, 160, 89, 0.12);
}

.ebd-share-btn .ebd-share-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ebd-share-btn:hover {
    transform: translateY(-2px);
    color: var(--ebd-primary);
    border-color: rgba(197, 160, 89, 0.42);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.ebd-share-btn:hover .dashicons,
.ebd-share-btn:hover .ebd-share-icon {
    color: #ffffff;
    background: var(--ebd-gold);
}

/* Estatísticas */
.ebd-res-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ebd-res-stat-card {
    background: #ffffff;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--ebd-shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebd-res-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ebd-shadow-sm);
}

.ebd-res-stat-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    align-items: center;
    justify-content: center;
    color: var(--ebd-gold);
    margin-bottom: 10px;
}

.ebd-res-stat-card strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--ebd-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.ebd-res-stat-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ebd-neutral-500);
    font-weight: 600;
}

/* Relacionados */
.ebd-res-related-section__header {
    margin-bottom: 20px;
}

.ebd-res-related-section__header p {
    margin: 8px 0 0;
    color: var(--ebd-neutral-500);
    font-size: 14px;
}

.ebd-res-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Sidebar premium: central de informações */
.ebd-res-info-card {
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1)),
        #ffffff;
}

.ebd-res-info-card .ebd-res-widget__title {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ebd-res-info-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ebd-res-info-group {
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.ebd-res-info-group__label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ebd-gold);
}

.ebd-res-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ebd-res-info-item {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.055);
}

.ebd-res-info-item--wide {
    grid-column: 1 / -1;
}

.ebd-res-info-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8090a8;
}

.ebd-res-info-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ebd-primary);
    word-break: break-word;
}

.ebd-res-info-item a {
    color: var(--ebd-primary);
    text-decoration: none;
}

.ebd-res-info-item a:hover {
    color: var(--ebd-gold);
}

/* Navegação entre recursos */
.ebd-res-resource-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin: var(--ebd-space-3xl) 0;
}

.ebd-res-resource-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--ebd-shadow-xs);
}

.ebd-res-resource-nav__link:hover {
    border-color: var(--ebd-gold);
    box-shadow: var(--ebd-shadow-sm);
    transform: translateY(-2px);
}

.ebd-res-resource-nav__link--next {
    text-align: right;
}

.ebd-res-resource-nav__dir {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ebd-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ebd-res-resource-nav__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ebd-primary);
    line-height: 1.4;
}

.ebd-res-resource-nav__center {
    align-self: center;
    white-space: nowrap;
}

/* CTA final */
.ebd-res-single-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--ebd-space-2xl);
}

.ebd-res-single-cta__overline {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ebd-gold);
    margin-bottom: 12px;
}

.ebd-res-single-cta__title {
    font-family: var(--ebd-font-serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin: 0 0 12px;
    color: #ffffff !important;
}

.ebd-res-single-cta__desc {
    font-size: 16px;
    color: #94a3b8 !important;
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.ebd-res-single-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Botões hp-btn na página single */
.ebd-single-recurso-wrapper .hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ebd-single-recurso-wrapper .hp-btn--gold {
    background: var(--ebd-gold);
    color: #ffffff;
}

.ebd-single-recurso-wrapper .hp-btn--gold:hover {
    background: #b8924f;
    transform: translateY(-1px);
}

.ebd-single-recurso-wrapper .hp-btn--outline {
    background: transparent;
    color: var(--ebd-primary);
    border: 1.5px solid var(--ebd-neutral-300);
}

.ebd-single-recurso-wrapper .hp-btn--outline:hover {
    border-color: var(--ebd-gold);
    color: var(--ebd-gold);
}

.ebd-single-recurso-wrapper .hp-btn--lg {
    padding: 14px 28px;
    font-size: 15px;
}

.ebd-single-recurso-wrapper .hp-btn--sm {
    padding: 10px 18px;
    font-size: 13px;
}

.ebd-res-single-cta .hp-btn--outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.ebd-res-single-cta .hp-btn--outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ebd-gold);
    color: var(--ebd-gold);
}

/* Responsivo — Single */
@media (max-width: 991px) {
    .ebd-res-single-layout {
        grid-template-columns: 1fr;
        gap: var(--ebd-space-lg);
    }

    .ebd-res-single-sidebar {
        position: static;
        order: 99;
    }

    .ebd-res-single-hero {
        padding: 28px 0 32px;
    }

    .ebd-res-single-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ebd-res-single-hero__actions {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ebd-res-single-hero__actions .hp-btn,
    .ebd-res-single-hero__actions .ebd-btn-fav-large {
        width: auto;
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }

    .ebd-res-single-hero__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .ebd-res-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-res-resource-nav {
        grid-template-columns: 1fr;
    }

    .ebd-res-resource-nav__center {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .ebd-res-resource-nav__placeholder {
        display: none;
    }

    .ebd-res-share-buttons--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ebd-single-recurso-wrapper {
        padding-bottom: var(--ebd-space-3xl);
    }

    .ebd-single-recurso-wrapper .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ebd-res-single-body {
        padding: var(--ebd-space-lg) 0 var(--ebd-space-2xl);
    }

    .ebd-res-single-main {
        gap: var(--ebd-space-md);
    }

    /* Hero mobile */
    .ebd-res-single-hero {
        padding: 20px 0 24px;
    }

    .ebd-res-single-hero .ebd-res-hero__breadcrumbs {
        font-size: 12px;
        line-height: 1.5;
        flex-wrap: wrap;
        gap: 4px 6px;
        margin-bottom: 16px;
    }

    .ebd-res-single-hero .ebd-res-hero__breadcrumbs span[aria-current="page"] {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #cbd5e1;
        flex: 1 1 100%;
        padding-top: 2px;
    }

    .ebd-res-single-hero__badges {
        gap: 8px;
        margin-bottom: 12px;
    }

    .ebd-res-single-hero__title {
        font-size: clamp(22px, 6.5vw, 28px);
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .ebd-res-single-hero__subtitle {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.55;
    }

    .ebd-res-single-hero__meta {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .ebd-res-single-hero__meta li {
        font-size: 12px;
        gap: 5px;
        line-height: 1.35;
    }

    .ebd-res-single-hero__meta .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .ebd-res-single-hero__tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
        margin: 0 -4px;
        mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 16px), transparent);
    }

    .ebd-res-single-hero__tags::-webkit-scrollbar {
        display: none;
    }

    .ebd-res-single-hero__tags .hp-badge--soft {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .ebd-res-single-hero__actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ebd-res-single-hero__actions .js-download-trigger {
        order: -1;
    }

    .ebd-res-single-hero__actions .hp-btn,
    .ebd-res-single-hero__actions .ebd-btn-fav-large {
        width: 100%;
        flex: none;
        min-height: 48px;
        font-size: 14px;
    }

    .ebd-btn-fav-large {
        padding: 12px 20px;
    }

    /* Cards de seção */
    .ebd-res-viewer-card,
    .ebd-res-about-card,
    .ebd-res-share-card {
        padding: 16px;
        border-radius: 14px;
    }

    .ebd-res-section-title {
        font-size: 18px;
        gap: 8px;
    }

    .ebd-res-section-title__icon,
    .ebd-res-about-card__icon,
    .ebd-res-share-card__icon {
        width: 32px;
        height: 32px;
    }

    .ebd-res-about-card__header,
    .ebd-res-share-card__header {
        margin-bottom: 14px;
    }

    .ebd-res-about-card__body {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Visualizador mobile */
    .ebd-res-viewer-card__header {
        margin-bottom: 12px;
    }

    .ebd-res-viewer {
        border-radius: 10px;
    }

    .ebd-res-viewer__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .ebd-res-viewer__toolbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }

    .ebd-res-viewer__filename {
        max-width: 100%;
        font-size: 12px;
    }

    .ebd-res-viewer__page-info {
        padding-left: 0;
        border-left: 0;
        font-size: 11px;
    }

    .ebd-res-viewer__toolbar-right {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .ebd-res-viewer-btn {
        width: 100%;
        height: 36px;
        border-radius: 8px;
    }

    .ebd-res-viewer__stage {
        min-height: 0;
        height: min(62vh, 480px);
        overflow: hidden;
    }

    .ebd-res-preview-frame {
        height: 100%;
        min-height: 320px;
        border-radius: 0;
    }

    .ebd-res-viewer-video {
        max-height: 100%;
        height: auto;
    }

    .ebd-res-viewer-image-wrap {
        max-height: 100%;
        padding: 10px;
    }

    .ebd-res-viewer-slides-note {
        font-size: 11px;
        padding: 8px 12px;
    }

    /* Compartilhamento */
    .ebd-res-share-buttons--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebd-res-share-buttons .ebd-share-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    /* Estatísticas */
    .ebd-res-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ebd-res-stat-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .ebd-res-stat-card strong {
        font-size: 20px;
    }

    .ebd-res-stat-card span {
        font-size: 10px;
    }

    /* Sidebar info */
    .ebd-res-info-card {
        padding: 16px;
        border-radius: 14px;
    }

    .ebd-res-info-card .ebd-res-widget__title {
        margin-bottom: 14px;
    }

    .ebd-res-info-groups {
        gap: 12px;
    }

    .ebd-res-info-group {
        padding: 12px;
        border-radius: 13px;
    }

    .ebd-res-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ebd-res-info-item {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .ebd-res-info-item span {
        font-size: 9px;
    }

    .ebd-res-info-item strong {
        font-size: 12.5px;
    }

    .ebd-res-widget__title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Relacionados */
    .ebd-res-grid--related {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ebd-res-related-section__header p {
        font-size: 13px;
    }

    /* Navegação */
    .ebd-res-resource-nav {
        margin: var(--ebd-space-xl) 0;
        gap: 10px;
    }

    .ebd-res-resource-nav__link {
        padding: 14px 16px;
    }

    .ebd-res-resource-nav__title {
        font-size: 13px;
    }

    .ebd-res-resource-nav__center {
        padding: 12px 20px;
    }

    /* CTA */
    .ebd-res-single-cta {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .ebd-res-single-cta__title {
        font-size: 22px;
    }

    .ebd-res-single-cta__desc {
        font-size: 14px;
    }

    .ebd-res-single-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ebd-res-single-cta__actions .hp-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }
}

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

    .ebd-res-viewer__toolbar-right {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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