/**
 * Correções adicionais para forçar o layout correto
 * Adicione este arquivo em functions.php após item-single.css
 */

/* ==================== FORÇA REMOÇÃO DE BACKGROUND DO HERO ==================== */
.single-tnc_col_6932_item .hero-section[data-type="type-2"],
body.single .hero-section[data-type="type-2"],
.single .entry-header.hero-section[data-type="type-2"] {
    background-image: none !important;
    background-color: #ffffff !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%) !important;
}

.single-tnc_col_6932_item .hero-section[data-type="type-2"]::before,
.single-tnc_col_6932_item .hero-section[data-type="type-2"]::after,
body.single .hero-section[data-type="type-2"]::before,
body.single .hero-section[data-type="type-2]::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==================== FORÇA CORES ESCURAS EM TODOS OS TEXTOS ==================== */
.single .hero-section[data-type="type-2"] * {
    color: inherit !important;
    text-shadow: none !important;
}

.single .hero-section[data-type="type-2"] .page-title {
    color: #1a202c !important;
}

.single .hero-section[data-type="type-2"] .item-description-box,
.single .hero-section[data-type="type-2"] .item-description-box * {
    color: #334155 !important;
    text-shadow: none !important;
}

.single .hero-section[data-type="type-2"] .ct-breadcrumbs,
.single .hero-section[data-type="type-2"] .ct-breadcrumbs * {
    color: #64748b !important;
}

/* ==================== FORÇA ORDEM CORRETA DOS ELEMENTOS ==================== */
.single .hero-section .ct-container {
    display: flex !important;
    flex-direction: column !important;
}

/* Breadcrumb primeiro */
.single .hero-section .item-custom-breadcrumbs,
.single .hero-section .ct-breadcrumbs:first-child {
    order: -10 !important;
}

/* Título segundo */
.single .hero-section .page-title {
    order: -9 !important;
}

/* Layout do item terceiro */
.single .hero-section .item-header-layout {
    order: -8 !important;
}

/* Entry meta (se existir) depois */
.single .hero-section .entry-meta {
    order: -7 !important;
}

/* Navegação por último */
.single .hero-section .item-sections-navigator {
    order: -6 !important;
}

/* Esconde breadcrumb duplicado no final */
.single .hero-section .ct-container > .ct-breadcrumbs:last-child {
    display: none !important;
}

/* ==================== MODAIS ACIMA DE TUDO ==================== */
.bibliografico-modal {
    z-index: 999999 !important;
}

.bibliografico-modal.show {
    display: flex !important;
}

/* ==================== WARNINGS PHP (APENAS DESENVOLVIMENTO) ==================== */
/* Esconda warnings em produção */
.single .item-action-buttons br,
.single .citation-text br {
    display: none !important;
}

.single .item-action-buttons b,
.single .citation-text b {
    display: none !important;
}

/* ==================== FORÇA LAYOUT RESPONSIVO ==================== */
@media screen and (max-width: 999px) {
    .single .hero-section[data-type="type-2"] .page-title {
        font-size: 1.75rem !important;
    }
    
    .single .hero-section[data-type="type-2"] .item-header-layout {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (min-width: 1000px) {
    .single .hero-section[data-type="type-2"] .item-header-layout {
        grid-template-columns: 280px 1fr !important;
        gap: 2.5rem !important;
    }
}

/* ==================== REMOVE PADDING EXCESSIVO ==================== */
.single .entry-header.hero-section[data-type="type-2"] {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}