/*
 * CSS Single Desktop - single-desktop.css
 * v5.5.0 - SIDEBAR ESTÃTICA (SEM STICKY)
 * 
 * ALTERAÃ‡Ã•ES v5.5.0:
 * - Sidebar removida do sticky position
 * - Sidebar com position: static (comportamento normal)
 * - Scroll natural da pÃ¡gina
 */

/* ===================================================================
   BASE E RESET
   =================================================================== */

body.single .single-desktop,
.single-desktop {
    background-color: #ffffff !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
    min-height: 100vh;
    line-height: 1.4;
    width: 100% !important;
}

body.single .container-single-desktop,
.container-single-desktop {
    max-width: 1135px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    margin-top: 40px !important;
}

/* ===================================================================
   ANÃšNCIO CABEÃ‡ALHO
   =================================================================== */

.publicidade-cabecalho {
	width: 100%;
    margin: 20px auto 30px auto;
    text-align: center;
    min-height: 50px;
	position: relative !important;
    z-index: 0 !important;
    overflow: visible !important;
}

.publicidade-cabecalho > * {
    max-width: 100% !important;
}

.publicidade-cabecalho iframe {
	max-width: 100% !important;
    display: block;
    margin: 0 auto;
}

/* ===================================================================
   TAG PUBLICIDADE
   =================================================================== */

.publicidade-tag {
    background: #FF6600;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
    text-align: left;
}

/* ===================================================================
   CONTAINERS DE ANÃšNCIOS GERAIS
   =================================================================== */

.publicidade-box {
    min-height: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px !important;
    overflow: visible !important;
    display: block !important;
}

.ad-inserter-block {
    margin-bottom: 15px !important;
    min-height: 90px;
    overflow: visible !important;
}

.ad-inserter-block:last-child {
    margin-bottom: 0;
}

.adsense-container {
    min-height: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
}

/* ===================================================================
   ANÃšNCIOS TOPO E BASE (SEM CAIXA CINZA)
   =================================================================== */

.publicidade-topo-conteudo,
.publicidade-base-conteudo {
    margin: 30px 0;
    text-align: left;
    overflow: visible !important;
}

/* ===================================================================
   ANÃšNCIOS CENTRO E AUTO (COM CAIXA CINZA PADRÃƒO)
   =================================================================== */

.publicidade-content-center,
.publicidade-content-auto {
    margin: 30px 0;
    text-align: left;
    overflow: visible !important;
    background: #fafafa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    padding: 15px !important;
    min-height: 100px !important;
}

/* Garantir que o .publicidade-box interno tambÃ©m mantenha o estilo */
.publicidade-content-center .publicidade-box,
.publicidade-content-auto .publicidade-box {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px !important;
}

/* ===================================================================
   HEADER FULLWIDTH
   =================================================================== */

.post-header-fullwidth-single {
    background: transparent;
    padding: 40px 0 30px 0;
    margin: 0 0 40px 0;
    border-bottom: 1px solid #e0e0e0;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

.post-kicker-single {
    display: inline-block;
    background: transparent;
    color: #d00;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.post-title-single {
    font-size: 48px;
    line-height: 1.25;
    font-weight: 700;
    color: #003482;
    margin: 0 0 20px 0;
    padding: 0;
}

.post-summary-single {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 25px 0;
    font-style: italic;
    border-left: 4px solid #d00;
    padding-left: 10px;
}

.post-meta-double {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 25px 0;
    font-size: 14px;
}

.meta-author {
    font-weight: 600;
    color: #003482;
}

.meta-datetime {
    color: #888;
}

/* ===================================================================
   BOTÃ•ES COMPARTILHAMENTO
   =================================================================== */

.social-share-row-fixed {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    border: none;
    order: 2;
}

.whatsapp-cta-btn:hover {
    background: #20BA5A;
    color: white;
}

.whatsapp-cta-btn svg {
    flex-shrink: 0;
}

.share-buttons-group {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    order: 1;
}

.share-btn {
    flex: 1;
    padding: 12px 16px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.share-btn:last-child {
    border-right: none;
}

.share-btn:hover {
    background: #f5f5f5;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-whatsapp:hover {
    background: #25D366;
    color: white;
}

.share-facebook:hover {
    background: #1877F2;
    color: white;
}

.share-native:hover {
    background: #666;
    color: white;
}

/* ===================================================================
   GRID PRINCIPAL
   =================================================================== */

.main-grid-single {
    display: grid;
    grid-template-columns: 730px 345px;
    gap: 30px;
    align-items: start;
    max-width: 1135px;
    width: 100%;
    margin: 0 auto;
}

/* ===================================================================
   POST BODY
   =================================================================== */

.post-body-desktop {
    width: 730px;
    background: transparent !important;
    padding: 0;
}

/* ===================================================================
   CONTEÃšDO DO POST
   =================================================================== */

.post-content-desktop {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

.post-content-desktop p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.post-content-desktop h2 {
    font-size: 28px;
    font-weight: 700;
    color: #003482;
    line-height: 1.3;
    margin: 35px 0 20px 0;
}

.post-content-desktop h3 {
    font-size: 24px;
    font-weight: 700;
    color: #003482;
    line-height: 1.3;
    margin: 30px 0 15px 0;
}

.post-content-desktop a {
    color: #003482;
    text-decoration: underline;
}

.post-content-desktop a:hover {
    color: #d00;
}

.post-content-desktop img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.post-content-desktop blockquote {
    border-left: 4px solid #d00;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

/* ===================================================================
   POSTS RELACIONADOS - 70% CENTRALIZADO (795px)
   =================================================================== */

.related-posts-desktop-new {
    margin: 50px auto 40px auto;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    max-width: 795px !important;
    width: 100%;
    grid-column: 1 / -1;
}

.section-title-mobile-style {
    font-size: 28px;
    font-weight: 700;
    color: #003482;
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    position: relative;
}

.section-title-mobile-style::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #d00, #ff4444);
    border-radius: 2px;
}

.related-content-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 25px;
    transition: opacity 0.3s ease;
}

.related-card-desktop {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 15px;
    transition: background 0.2s ease;
}

.related-card-desktop:hover {
    background: rgba(255, 255, 255, 0.5);
}

.related-thumb-desktop {
    display: block;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f0f0f0;
    margin-bottom: 12px;
    border-radius: 4px;
}

.related-thumb-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none !important;
    transform: none !important;
}

.related-content-desktop {
    padding: 0;
}

.related-title-desktop {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.related-title-desktop a {
    color: #003482;
    text-decoration: none;
}

.related-title-desktop a:hover {
    color: #d00;
}

.related-time-desktop {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.related-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.related-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #003482;
    border-radius: 6px;
    color: #003482;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-nav-btn:hover:not(:disabled) {
    background: #003482;
    color: white;
}

.related-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.related-nav-btn svg {
    flex-shrink: 0;
}

.related-nav-info {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.related-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background: rgba(255,255,255,0.95);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003482;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================================================
   FEED "MAIS POÃ‡OS JÃ" - 70% CENTRALIZADO (795px)
   =================================================================== */

.feed-section-desktop-new {
    margin: 50px auto 40px auto;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    max-width: 795px !important;
    width: 100%;
    grid-column: 1 / -1;
}

.feed-container-desktop {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
}

.feed-post {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 20px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 25px 0;
    transition: background 0.2s ease;
}

.feed-post:hover {
    background: rgba(255, 255, 255, 0.5);
}

.feed-post-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
    border-radius: 4px;
}

.feed-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none !important;
    transform: none !important;
}

.feed-post-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-kicker {
    font-size: 11px;
    font-weight: 700;
    color: #d00;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.feed-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.feed-post-title a {
    color: #003482;
    text-decoration: none;
}

.feed-post-title a:hover {
    color: #d00;
}

.feed-excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 0 0 10px 0;
}

.feed-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-label {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.load-more-desktop {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 14px 30px;
    background: #003482;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-desktop:hover:not(:disabled) {
    background: #00255a;
    transform: translateY(-2px);
}

.load-more-desktop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feed-ad-adsense {
    margin: 25px 0;
    padding: 0;
    text-align: left;
    width: 100%;
    overflow: visible !important;
}

.feed-ad-adsense .publicidade-tag {
    background: #FF6600;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
    text-align: left;
}

.feed-ad-adsense .publicidade-box {
    width: 100% !important;
    min-height: 100px !important;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: visible !important;
}

/* ===================================================================
   SIDEBAR - ESTÃTICA (SEM STICKY) - TAGS AUTOMÃTICAS
   =================================================================== */

.td-pb-span4.td-main-sidebar {
    width: 345px !important;
    position: static !important; /* ALTERADO: era sticky, agora Ã© static */
    top: auto !important; /* ALTERADO: removido top fixo */
    z-index: auto !important;
    align-self: flex-start !important;
}

/* Widgets com fundo transparente */
.single-desktop .td-pb-span4.td-main-sidebar .widget {
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: none;
    position: relative;
    min-height: 250px;
}

.single-desktop .td-pb-span4.td-main-sidebar .widget:last-child {
    margin-bottom: 0;
}

/* Widgets Custom HTML/Text */
.single-desktop .td-pb-span4.td-main-sidebar .widget_custom_html,
.single-desktop .td-pb-span4.td-main-sidebar .widget_text {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* ConteÃºdo com padding-top para tag */
.single-desktop .td-pb-span4.td-main-sidebar .widget_custom_html .widget-content,
.single-desktop .td-pb-span4.td-main-sidebar .widget_text .textwidget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    padding-top: 20px;
    box-shadow: none;
    position: relative;
}

/* TAG PUBLICIDADE AUTOMÃTICA - MÃ‰TODO DA HOME */
.single-desktop .td-pb-span4.td-main-sidebar .widget_custom_html .widget-content::before,
.single-desktop .td-pb-span4.td-main-sidebar .widget_text .textwidget::before {
    content: "PUBLICIDADE";
    position: absolute;
    top: 0px;
    left: 0;
    background: #FF6600;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 10;
    font-family: 'Open Sans', Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===================================================================
   RESPONSIVO
   =================================================================== */

@media (max-width: 1200px) {
    .main-grid-single {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    .post-body-desktop {
        width: 100%;
    }
    
    .related-content-area {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .td-pb-span4.td-main-sidebar {
        width: 300px !important;
    }
    
    .related-posts-desktop-new,
    .feed-section-desktop-new {
        max-width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .main-grid-single {
        grid-template-columns: 1fr;
    }
    
    .td-pb-span4.td-main-sidebar {
        display: none;
    }
    
    .social-share-row-fixed {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons-group,
    .whatsapp-cta-btn {
        width: 100%;
        order: initial;
    }
}

@media (max-width: 768px) {
    .post-title-single {
        font-size: 32px;
    }
    
    .related-content-area {
        grid-template-columns: 1fr;
    }
    
    .feed-post {
        grid-template-columns: 1fr;
    }
    
    .feed-post-content {
        padding: 15px 0;
    }
}

/* ===================================================================
   ACESSIBILIDADE
   =================================================================== */

.whatsapp-cta-btn:focus,
.share-btn:focus,
.related-nav-btn:focus,
.load-more-desktop:focus {
    outline: 2px solid rgba(0, 52, 130, 0.6);
    outline-offset: 2px;
}

/* ===================================================================
   PRINT
   =================================================================== */

@media print {
    .publicidade-cabecalho,
    .publicidade-topo-conteudo,
    .publicidade-base-conteudo,
    .publicidade-content-center,
    .publicidade-content-auto,
    .social-share-row-fixed,
    .related-nav-desktop,
    .load-more-desktop,
    .td-pb-span4.td-main-sidebar,
    .feed-ad-adsense {
        display: none !important;
    }
}